? node_clone-cloned_node_title_prefix.patch Index: clone.pages.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/node_clone/clone.pages.inc,v retrieving revision 1.3 diff -u -p -r1.3 clone.pages.inc --- clone.pages.inc 7 May 2008 02:28:58 -0000 1.3 +++ clone.pages.inc 27 May 2009 15:00:13 -0000 @@ -1,6 +1,6 @@ array(t('Require confirmation (recommended)'), t('Bypass confirmation')), '#description' => t('A new node may be saved immediately upon clicking the "clone" tab when viewing a node, bypassing the normal confirmation form.'), ); - + $form['basic']['clone_prefix'] = array( + '#type' => 'textfield', + '#title' => t('Node title prefix'), + '#description' => t('Enter the prefix for the node title.'), + '#default_value' => variable_get('clone_prefix', 'Clone of '), + ); + $form['publishing'] = array( '#type' => 'fieldset', '#title' => t('Should the publishing options ( e.g. published, promoted, etc) be reset to the defaults?'), @@ -123,7 +129,7 @@ function clone_node_prepopulate($origina } $node->path = NULL; $node->files = array(); - $node->title = t('Clone of !title', array('!title' => $node->title)); + $node->title = t('!prefix!title', array('!prefix' => variable_get('clone_prefix', 'Clone of '), '!title' => $node->title)); drupal_set_title(check_plain($node->title)); if (variable_get('clone_reset_'. $node->type, FALSE)) {