contextual_help
function contextual_help
contextual_help($path, $arg)
Implements hook_help().
File
- modules/contextual/contextual.module, line 11
- Adds contextual links to perform actions related to elements on a page.
Code
function contextual_help($path, $arg) { switch ($path) { case 'admin/help#contextual': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Contextual links module displays links related to regions of pages on your site to users with <em>access contextual links</em> permission. For more information, see the online handbook entry for <a href="drupal_7-modules-contextual-contextual-module-function-contextual_help-@contextual.html?lang=en">Contextual links module</a>.', array('@contextual' => 'http://drupal.org/documentation/modules/contextual')) . '</p>'; $output .= '<h3>' . t('Uses') . '</h3>'; $output .= '<dl>'; $output .= '<dt>' . t('Displaying contextual links') . '</dt>'; $output .= '<dd>' . 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.') . '</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!contextual!contextual.module/function/contextual_help/7.x