From 169656a79bacb510c7ec9cd12c74e869a9e6f6ef Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 11 Dec 2009 16:57:24 +0000 Subject: - Patch #653000 by jhodgdon, arianek: create help page for Overlay module following new standard. --- modules/contextual/contextual.module | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'modules/contextual') diff --git a/modules/contextual/contextual.module b/modules/contextual/contextual.module index f174047be..e414eb3d6 100644 --- a/modules/contextual/contextual.module +++ b/modules/contextual/contextual.module @@ -6,6 +6,25 @@ * Adds contextual links to perform actions related to elements on a page. */ + +/** + * Implements hook_help(). + */ +function contextual_help($path, $arg) { + switch ($path) { + case 'admin/help#contextual': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Contextual links module displays links related to regions of pages on your site to users with access contextual links permission. For more information, see the online handbook entry for Contextual links module.', array('@contextual' => 'http://drupal.org/handbook/modules/contextual')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Displaying contextual links') . '
'; + $output .= '
' . t('Contextual links are supplied by modules, to give you quick access to tasks associated with regions of pages on your site. For instance, if you have a custom menu block displayed in a sidebar of your site, the Blocks and Menus modules will supply links to configure the block and edit the menu. The Contextual links module collects these links into a list for display by your theme, and also adds JavaScript code to the page to hide the links initially, and display them when your mouse hovers over the block.') . '
'; + $output .= '
'; + return $output; + } +} + /** * Implements hook_permission(). */ -- cgit v1.2.3