Skip to content

Commit

Permalink
fixup(clone): More clone→duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
torotil committed Jul 25, 2024
1 parent 0de464b commit ecaaf7e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function campaignion_manage_menu_alter(&$items) {
*/
function campaignion_manage_clone_form_clone_node_confirm_alter(&$form, &$form_state) {
$form['description']['#markup'] = t('Are you sure you want to duplicate %title?', ['%title' => $node->title]);
$form['actions']['submit']['#value'] = t('Duplicate');
$form['#submit'] = ['clone_node_confirm_submit'];
// Add a custom submit-handler in order to redirect to the wizard.
$form['#submit'][] = 'campaignion_manage_clone_node_confirm_submit';
Expand Down

0 comments on commit ecaaf7e

Please sign in to comment.