From 3e6d6e115fe925debc7f153c8e535199da365e63 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 4 Dec 2009 16:02:42 +0000 Subject: - Patch #636822 by jhodgdon, arianek, David_Rothstein, JuliaKM: help improvements for shortcut and toolbar. --- modules/toolbar/toolbar.info | 2 +- modules/toolbar/toolbar.module | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'modules/toolbar') diff --git a/modules/toolbar/toolbar.info b/modules/toolbar/toolbar.info index 23b6b477d..92fd7bb45 100644 --- a/modules/toolbar/toolbar.info +++ b/modules/toolbar/toolbar.info @@ -1,6 +1,6 @@ ; $Id$ name = Toolbar -description = Toolbar exposing the top level administration menu items. +description = Provides a toolbar that shows the top-level administration menu items and links from other modules. core = 7.x package = Core version = VERSION diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index f668cb135..3c3667fde 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -6,6 +6,23 @@ * Administration toolbar for quick access to top level administration items. */ +/** + * Implements hook_help(). + */ +function toolbar_help($path, $arg) { + switch ($path) { + case 'admin/help#toolbar': + $output = '

' . t('About') . '

'; + $output .= '

' . 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 Toolbar module.', array('@toolbar' => 'http://drupal.org/handbook/modules/toolbar/')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Displaying administrative links') . '
'; + $output .= '
' . 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 drawer section where it displays links provided by other modules, such as the core Shortcut module. The drawer can be hidden/shown by using the close/open drawer link at the end of the toolbar.', array('@shortcuts-help' => url('admin/help/shortcut'))) . '
'; + $output .= '
'; + return $output; + } +} + /** * Implementation of hook_permission(). */ -- cgit v1.2.3