Same name and namespace in other branches
  1. 10 core/modules/node/node.module \node_help()
  2. 4.6.x modules/node.module \node_help()
  3. 4.7.x modules/node.module \node_help()
  4. 6.x modules/node/node.module \node_help()
  5. 7.x modules/node/node.module \node_help()
  6. 8.9.x core/modules/node/node.module \node_help()
  7. 9 core/modules/node/node.module \node_help()

Implementation of hook_help().

File

modules/node/node.module, line 14
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_help($section) {
  switch ($section) {
    case 'admin/help#node':
      $output = '<p>' . t('All content in a website is stored and treated as <b>nodes</b>. Therefore nodes are any postings such as blogs, stories, polls and forums. The node module manages these content types and is one of the strengths of Drupal over other content management systems.') . '</p>';
      $output .= '<p>' . t('Treating all content as nodes allows the flexibility of creating new types of content. It also allows you to painlessly apply new features or changes to all content. Comments are not stored as nodes but are always associated with a node.') . '</p>';
      $output .= t('<p>Node module features</p>
<ul>
<li>The list tab provides an interface to search and sort all content on your site.</li>
<li>The configure settings tab has basic settings for content on your site.</li>
<li>The configure content types tab lists all content types for your site and lets you configure their default workflow.</li>
<li>The search tab lets you search all content on your site</li>
</ul>
');
      $output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@node">Node page</a>.', array(
        '@node' => 'http://drupal.org/handbook/modules/node/',
      )) . '</p>';
      return $output;
    case 'admin/content/search':
      return '<p>' . t('Enter a simple pattern to search for a post. Words are matched exactly. Phrases can be surrounded by quotes to do an exact search.') . '</p>';
    case 'admin/content/types':
      return '<p>' . t('Below is a list of all the content types on your site. All posts that exist on your site are instances of one of these content types.') . '</p>';
    case 'admin/content/types/add':
      return '<p>' . t('To create a new content type, enter the human-readable name, the machine-readable name, and all other relevant fields that are on this page. Once created, users of your site will be able to create posts that are instances of this content type.') . '</p>';
  }
  if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'revisions' && arg(3) == NULL) {
    return '<p>' . t('The revisions let you track differences between multiple versions of a post.') . '</p>';
  }
  if (arg(0) == 'node' && arg(1) == 'add' && ($type = arg(2))) {
    $type = node_get_types('type', str_replace('-', '_', arg(2)));
    return '<p>' . filter_xss_admin($type->help) . '</p>';
  }
}