function toolbar_help

Same name in other branches
  1. 9 core/modules/toolbar/toolbar.module \toolbar_help()
  2. 8.9.x core/modules/toolbar/toolbar.module \toolbar_help()
  3. 10 core/modules/toolbar/toolbar.module \toolbar_help()
  4. 11.x core/modules/toolbar/toolbar.module \toolbar_help()

Implements hook_help().

File

modules/toolbar/toolbar.module, line 11

Code

function toolbar_help($path, $arg) {
    switch ($path) {
        case 'admin/help#toolbar':
            $output = '<h3>' . t('About') . '</h3>';
            $output .= '<p>' . t('The Toolbar module displays links to top-level administration menu items and links from other modules at the top of the screen. For more information, see the online handbook entry for <a href="@toolbar">Toolbar module</a>.', array(
                '@toolbar' => 'http://drupal.org/documentation/modules/toolbar/',
            )) . '</p>';
            $output .= '<h3>' . t('Uses') . '</h3>';
            $output .= '<dl>';
            $output .= '<dt>' . t('Displaying administrative links') . '</dt>';
            $output .= '<dd>' . t('The Toolbar module displays a bar containing top-level administrative links across the top of the screen. Below that, the Toolbar module has a <em>drawer</em> section where it displays links provided by other modules, such as the core <a href="@shortcuts-help">Shortcut module</a>. The drawer can be hidden/shown by using the show/hide shortcuts link at the end of the toolbar.', array(
                '@shortcuts-help' => url('admin/help/shortcut'),
            )) . '</dd>';
            $output .= '</dl>';
            return $output;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.