You are here

function node_clone_help in Node clone 8

Implementation of hook_help().

File

./node_clone.module, line 10
Allow users to make a copy of an item of content (a node) and then edit that copy.

Code

function node_clone_help($path, $arg) {
  switch ($path) {
    case 'admin/help#clone':
      $output = '<p>' . t('The clone module allows users to make a copy of an existing node and then edit that copy. The authorship is set to the current user, the menu and url aliases are reset, and the words "Clone of" are inserted into the title to remind you that you are not editing the original node.') . '</p>';
      $output .= '<p>' . t('Users with the "clone node" permission can utilize this functionality. A new tab will appear on node pages with the word "Clone".') . '</p>';
      return $output;
    case 'node/%/clone':

      // This looks like another module's variable. You'll need to rewrite this call
      // to ensure that it uses the correct configuration object.
      // $method = variable_get('clone_method', 'prepopulate');
      // if ($method == 'prepopulate') {
      return t('This clone will not be saved to the database until you submit.');
  }
}