Skip to content
Snippets Groups Projects

Add hook_help

+ 14
0
@@ -69,3 +69,17 @@ function menu_css_names__make_class_name($text) {
$text = preg_replace('/--+/', '-', $text);
return $text;
}
/**
* Implements hook_help().
*/
function menu_css_names_help($route_name, $route_match) {
switch ($route_name) {
case 'help.page.menu_css_names':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t("This is a very simple module that takes the link text of each Drupal menu item and adds it as a CSS class name to the menu's &lt;li&gt; element. Using these class names, each menu item can be styled separately with CSS. This is also very useful for CSS sprite techniques.<br><br>
There are no admin settings for this module; it starts doing its work once the module is enabled. All caches are automatically cleared at this time also. This module works with all menus, as well as local actions and local tasks.") . '</p>';
return $output;
}
}
Loading