Index: clone.pages.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/node_clone/clone.pages.inc,v retrieving revision 1.3 diff -u -r1.3 clone.pages.inc --- clone.pages.inc 7 May 2008 02:28:58 -0000 1.3 +++ clone.pages.inc 20 Aug 2008 18:51:17 -0000 @@ -24,6 +24,13 @@ '#options' => 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_modify_title'] = array( + '#type' => 'checkbox', + '#title' => t('Add "Clone Of" to the beginning of cloned node titles?'), + '#description' => t('Select this option to add a reminder about cloned nodes to node titles. Otherwise, a message is displayed to the user.'), + '#default_value' => variable_get('clone_modify_title', TRUE), + ); + $form['publishing'] = array( '#type' => 'fieldset', @@ -123,7 +130,15 @@ } $node->path = NULL; $node->files = array(); - $node->title = t('Clone of !title', array('!title' => $node->title)); + + // Add indicator text to the title if enabled, otherwise set a message. + if (variable_get('clone_modify_title', TRUE)) { + $node->title = t('Clone of !title', array('!title' => $node->title)); + } + else { + drupal_set_message(t('This form is a clone of @title.', array('@original-node' => url('node/' . $original_node->nid), '@title' => $original_node->title))); + } + drupal_set_title(check_plain($node->title)); if (variable_get('clone_reset_'. $node->type, FALSE)) { Index: clone.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/node_clone/clone.install,v retrieving revision 1.2 diff -u -r1.2 clone.install --- clone.install 4 May 2008 00:23:21 -0000 1.2 +++ clone.install 20 Aug 2008 18:51:16 -0000 @@ -10,6 +10,7 @@ variable_del('clone_method'); variable_del('clone_omitted'); variable_del('clone_nodes_without_confirm'); + variable_del('clone_modify_title'); $types = node_get_types('names'); foreach ($types as $type => $name) { variable_del('clone_reset_'. $type);