You are here

function system_help in Drupal 4

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

Implementation of hook_help().

File

modules/system.module, line 13
Configuration system that lets administrators modify the workings of the site.

Code

function system_help($section) {
  global $base_url;
  switch ($section) {
    case 'admin/help#system':
      $output = '<p>' . t('The system module provides system-wide defaults such as running jobs at a particular time, and storing web pages to improve efficiency.   The ability to run scheduled jobs makes administering the web site more usable, as administrators do not have to manually start jobs.   The storing of web pages, or caching, allows the site to efficiently re-use web pages and improve web site performance.  The settings module provides control over preferences, behaviours including visual and operational settings.') . '</p>';
      $output .= '<p>' . t('Some modules require regularly scheduled actions, such as cleaning up logfiles. Cron, which stands for chronograph, is a periodic command scheduler executing commands at intervals specified in seconds. It can be used to control the execution of daily, weekly and monthly jobs (or anything with a period measured in seconds). The aggregator module periodically updates feeds using cron.  Ping periodically notifies services of new content on your site.  Search periodically indexes the content on your site.   Automating tasks is one of the best ways to keep a system running smoothly, and if most of your administration does not require your direct involvement, cron is an ideal solution.') . '</p>';
      $output .= '<p>' . t('There is a caching mechanism which stores dynamically generated web pages in a database. By caching a web page, the system module does not have to create the page each time someone wants to view it, instead it takes only one SQL query to display it, reducing response time and the server\'s load. Only pages requested by <em>anonymous</em> users are cached. In order to reduce server load and save bandwidth, the system module stores and sends cached pages compressed.') . '</p>';
      $output .= t('<p>You can</p>
<ul>
<li>activate your cron job on the cron page <a href="%file-cron">cron.php</a>.</li>
<li>read how to <a href="%external-http-drupal-org-cron">configure cron jobs</a>.</li>
<li>administer cache settings in <a href="%admin-settings">administer &gt;&gt; settings</a>.</li>
</ul>
', array(
        '%file-cron' => 'cron.php',
        '%external-http-drupal-org-cron' => 'http://drupal.org/cron',
        '%admin-settings' => url('admin/settings'),
      ));
      $output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="%system">System page</a>.', array(
        '%system' => 'http://drupal.org/handbook/modules/system/',
      )) . '</p>';
      return $output;
    case 'admin/modules#description':
      return t('Handles general site configuration for administrators.');
    case 'admin':
      return t('<p>Welcome to the administration section. Below are the most recent system events.</p>');
    case 'admin/settings':
      return t('<p>General configuration options for your site. Set up the name of the site, e-mail address used in mail-outs, clean URL options, caching, etc.</p>');
    case 'admin/themes':
      return t('<p>Select which themes are available to your users and specify the default theme. To configure site-wide display settings, click the "configure" task above. Alternately, to override these settings in a specific theme, click the "configure" link for the corresponding theme.  Note that different themes may have different regions available for rendering content like blocks.  If you want consistency in what your users see, you may wish to enable only one theme.</p>');
    case 'admin/themes/settings':
      return t('<p>These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used.</p>');
    case 'admin/themes/settings/' . arg(3):
      $reference = explode('.', arg(3), 2);
      $theme = array_pop($reference);
      return t('<p>These options control the display settings for the <code>%template</code> theme. When your site is displayed using this theme, these settings will be used. By clicking "Reset to defaults," you can choose to use the <a href="%global">global settings</a> for this theme.</p>', array(
        '%template' => check_plain($theme),
        '%global' => url('admin/themes/settings'),
      ));
    case 'admin/modules':
      return t('<p>Modules are plugins for Drupal that extend its core functionality. Here you can select which modules are enabled. Click on the name of the module in the navigation menu for their individual configuration pages. Once a module is enabled, new <a href="%permissions">permissions</a> might be made available. Modules can automatically be temporarily disabled to reduce server load when your site becomes extremely busy by enabling the throttle.module and checking throttle. The auto-throttle functionality must be enabled on the <a href="%throttle">throttle configuration page</a> after having enabled the throttle module.</p>
<p>It is important that <a href="%update-php">update.php</a> is run every time a module is updated to a newer version.</p>', array(
        '%permissions' => url('admin/access/permissions'),
        '%throttle' => url('admin/settings/throttle'),
        '%update-php' => $base_url . '/update.php',
      ));
  }
}