help_help
function help_help
help_help($path, $arg)
Implements hook_help().
File
- modules/help/help.module, line 38
- Manages displaying online help.
Code
function help_help($path, $arg) { switch ($path) { case 'admin/help': $output = '<p>' . t('Follow these steps to set up and start using your website:') . '</p>'; $output .= '<ol>'; $output .= '<li>' . t('<strong>Configure your website</strong> Once logged in, visit the <a href="drupal_7-modules-help-help-module-function-help_help-@admin">administration section<-a>, where you can <a href=.html?lang=en"@config">customize and configure</a> all aspects of your website.', array('@admin' => url('admin'), '@config' => url('admin/config'))) . '</li>'; $output .= '<li>' . t('<strong>Enable additional functionality</strong> Next, visit the <a href="drupal_7-modules-help-help-module-function-help_help-@modules.html?lang=en">module list</a> and enable features which suit your specific needs. You can find additional modules in the <a href="drupal_7-modules-help-help-module-function-help_help-@download_modules.html?lang=en">Drupal modules download section</a>.', array('@modules' => url('admin/modules'), '@download_modules' => 'http://drupal.org/project/modules')) . '</li>'; $output .= '<li>' . t('<strong>Customize your website design</strong> To change the "look and feel" of your website, visit the <a href="drupal_7-modules-help-help-module-function-help_help-@themes.html?lang=en">themes section</a>. You may choose from one of the included themes or download additional themes from the <a href="drupal_7-modules-help-help-module-function-help_help-@download_themes.html?lang=en">Drupal themes download section</a>.', array('@themes' => url('admin/appearance'), '@download_themes' => 'http://drupal.org/project/themes')) . '</li>'; $output .= '<li>' . t('<strong>Start posting content</strong> Finally, you can <a href="drupal_7-modules-help-help-module-function-help_help-@content.html?lang=en">add new content</a> for your website.', array('@content' => url('node/add'))) . '</li>'; $output .= '</ol>'; $output .= '<p>' . t('For more information, refer to the specific topics listed in the next section or to the <a href="drupal_7-modules-help-help-module-function-help_help-@handbook.html?lang=en">online Drupal handbooks</a>. You may also post at the <a href="drupal_7-modules-help-help-module-function-help_help-@forum">Drupal forum<-a> or view the wide range of <a href=.html?lang=en"@support">other support options</a> available.', array('@help' => url('admin/help'), '@handbook' => 'http://drupal.org/documentation', '@forum' => 'http://drupal.org/forum', '@support' => 'http://drupal.org/support')) . '</p>'; return $output; case 'admin/help#help': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Help module provides <a href="drupal_7-modules-help-help-module-function-help_help-@help-page.html?lang=en">Help reference pages</a> and context-sensitive advice to guide you through the use and configuration of modules. It is a starting point for the online <a href="drupal_7-modules-help-help-module-function-help_help-@handbook.html?lang=en">Drupal handbooks</a>. The handbooks contain more extensive and up-to-date information, are annotated with user-contributed comments, and serve as the definitive reference point for all Drupal documentation. For more information, see the online handbook entry for the <a href="drupal_7-modules-help-help-module-function-help_help-@help.html?lang=en">Help module</a>.', array('@help' => 'http://drupal.org/documentation/modules/help/', '@handbook' => 'http://drupal.org/documentation', '@help-page' => url('admin/help'))) . '</p>'; $output .= '<h3>' . t('Uses') . '</h3>'; $output .= '<dl>'; $output .= '<dt>' . t('Providing a help reference') . '</dt>'; $output .= '<dd>' . t('The Help module displays explanations for using each module listed on the main <a href="drupal_7-modules-help-help-module-function-help_help-@help.html?lang=en">Help reference page</a>.', array('@help' => url('admin/help'))) . '</dd>'; $output .= '<dt>' . t('Providing context-sensitive help') . '</dt>'; $output .= '<dd>' . t('The Help module displays context-sensitive advice and explanations on various pages.') . '</dd>'; $output .= '</dl>'; return $output; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!help!help.module/function/help_help/7.x