'Help', 'description' => 'Reference for usage, configuration, and modules.', 'route_name' => 'help_main', 'weight' => 9, ); $modules = module_implements('help'); ksort($modules); foreach ($modules as $module) { $items['admin/help/' . $module] = array( 'title' => $module, 'page callback' => 'help_page', 'page arguments' => array(2), 'access arguments' => array('access administration pages'), 'type' => MENU_VISIBLE_IN_BREADCRUMB, 'file' => 'help.admin.inc', ); } return $items; } /** * Implements hook_help(). */ function help_help($path, $arg) { switch ($path) { case 'admin/help': $output = '

' . t('Follow these steps to set up and start using your website:') . '

'; $output .= '
    '; $output .= '
  1. ' . t('Configure your website Once logged in, visit the administration section, where you can customize and configure all aspects of your website.', array('@admin' => url('admin'), '@config' => url('admin/config'))) . '
  2. '; $output .= '
  3. ' . t('Enable additional functionality Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section.', array('@modules' => url('admin/modules'), '@download_modules' => 'http://drupal.org/project/modules')) . '
  4. '; $output .= '
  5. ' . t('Customize your website design To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section.', array('@themes' => url('admin/appearance'), '@download_themes' => 'http://drupal.org/project/themes')) . '
  6. '; // Display a link to the create content page if Node module is enabled. if (module_exists('node')) { $output .= '
  7. ' . t('Start posting content Finally, you can add new content for your website.', array('@content' => url('node/add'))) . '
  8. '; } $output .= '
'; $output .= '

' . t('For more information, refer to the specific topics listed in the next section or to the online Drupal handbooks. You may also post at the Drupal forum or view the wide range of other support options available.', array('@help' => url('admin/help'), '@handbook' => 'http://drupal.org/documentation', '@forum' => 'http://drupal.org/forum', '@support' => 'http://drupal.org/support')) . '

'; return $output; case 'admin/help#help': $output = ''; $output .= '

' . t('About') . '

'; $output .= '

' . t('The Help module provides Help reference pages and context-sensitive advice to guide you through the use and configuration of modules. It is a starting point for the online Drupal handbooks. 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 Help module.', array('@help' => 'http://drupal.org/documentation/modules/help/', '@handbook' => 'http://drupal.org/documentation', '@help-page' => url('admin/help'))) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Providing a help reference') . '
'; $output .= '
' . t('The Help module displays explanations for using each module listed on the main Help reference page.', array('@help' => url('admin/help'))) . '
'; $output .= '
' . t('Providing context-sensitive help') . '
'; $output .= '
' . t('The Help module displays context-sensitive advice and explanations on various pages.') . '
'; $output .= '
'; return $output; } } /** * Implements hook_preprocess_HOOK() for block.tpl.php. */ function help_preprocess_block(&$variables) { if ($variables['plugin_id'] == 'system_help_block') { $variables['attributes']['role'] = 'complementary'; } }