You are here

function node_help in Drupal 4

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

Implementation of hook_help().

File

modules/node.module, line 13
The core that allows content to be submitted to the site.

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 .= t('<p>You can</p>
<ul>
<li>search for content at <a href="%search">search</a>.</li>
<li>administer nodes at <a href="%admin-settings-content-types">administer &gt;&gt; settings &gt;&gt; content types</a>.</li>
</ul>
', array(
        '%search' => url('search'),
        '%admin-settings-content-types' => url('admin/settings/content-types'),
      ));
      $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/modules#description':
      return t('Allows content to be submitted to the site and displayed on pages.');
    case 'admin/node/configure':
    case 'admin/node/configure/settings':
      return t('<p>Settings for the core of Drupal. Almost everything is a node so these settings will affect most of the site.</p>');
    case 'admin/node':
      return t('<p>Below is a list of all of the posts on your site. Other forms of content are listed elsewhere (e.g. <a href="%comments">comments</a>).</p><p>Clicking a title views the post, while clicking an author\'s name views their user information.</p>', array(
        '%comments' => url('admin/comment'),
      ));
    case 'admin/node/search':
      return t('<p>Enter a simple pattern to search for a post. This can include the wildcard character *.<br />For example, a search for "br*" might return "bread bakers", "our daily bread" and "brenda".</p>');
  }
  if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'revisions' && !arg(3)) {
    return t('The revisions let you track differences between multiple versions of a post.');
  }
  if (arg(0) == 'node' && arg(1) == 'add' && ($type = arg(2))) {
    return filter_xss_admin(variable_get($type . '_help', ''));
  }
}