function ultimenu_help in Ultimenu 8.2
Same name and namespace in other branches
- 8 ultimenu.module \ultimenu_help()
- 7 ultimenu.module \ultimenu_help()
Implements hook_help().
File
- ./
ultimenu.module, line 135 - Build Ultimenu blocks based on menu, and their regions on enabled menu items.
Code
function ultimenu_help($route_name) {
if ($route_name == 'help.page.ultimenu') {
$items = [
'README',
'CONFIGURATION',
'STYLING',
'TROUBLESHOOTING',
'UPDATING',
'FAQ',
'MAINTAINERS',
];
$output = '';
foreach ($items as $key) {
$output .= file_get_contents(dirname(__FILE__) . "/docs/{$key}.md");
}
return function_exists('blazy_parse_markdown') ? blazy_parse_markdown($output) : '<pre>' . $output . '</pre>';
}
return '';
}