You are here

function addanother_help in Add Another 5

Same name and namespace in other branches
  1. 8 addanother.module \addanother_help()
  2. 6 addanother.module \addanother_help()
  3. 7.2 addanother.module \addanother_help()
  4. 7 addanother.module \addanother_help()

Implementation of hook_help().

File

./addanother.module, line 10
Presents users with an option to create another node of the same type after a node is added.

Code

function addanother_help($section) {
  switch ($section) {
    case 'admin/help#addanother':
      $output = '<p>' . t("Presents users with an option to create another node of the same type after a node is added.") . '</p>';
      return $output;
    case 'admin/settings/addanother':
      $output = 'Here you can select the content types for which an <em>"Add another..."</em> message will be displayed. After creating a new content node, users with the <a href="@addanother_perm">enable add another</a> permission will receive a message allowing them to add another content node of the same type.';
      return '<p>' . t($output, array(
        '@addanother_perm' => url('admin/user/permissions', array(
          'fragment' => 'module-addanother',
        )),
      )) . '</p>';
  }
}