You are here

function clone_help in Node clone 6

Same name and namespace in other branches
  1. 5.2 clone.module \clone_help()
  2. 5 clone.module \clone_help()
  3. 7 clone.module \clone_help()

Implementation of hook_help().

File

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

Code

function 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':
      $method = variable_get('clone_method', 'prepopulate');
      if ($method == 'prepopulate') {
        return t('This clone will not be saved to the database until you submit.');
      }
  }
}