function gridstack_ui_help in GridStack 8.2
Same name and namespace in other branches
- 8 modules/gridstack_ui/gridstack_ui.module \gridstack_ui_help()
Implements hook_help().
File
- modules/
gridstack_ui/ gridstack_ui.module, line 59 - Provides GridStack configuration entity UI.
Code
function gridstack_ui_help($route_name) {
if ($route_name == 'help.page.gridstack_ui') {
$output = file_get_contents(dirname(dirname(dirname(__FILE__))) . '/docs/README.md');
foreach ([
'CONFIGURATION',
'TROUBLESHOOTING',
'FAQ',
'ROADMAP',
] as $key) {
$output .= file_get_contents(dirname(dirname(dirname(__FILE__))) . "/docs/{$key}.md");
}
return function_exists('blazy_parse_markdown') ? blazy_parse_markdown($output) : '<pre>' . $output . '</pre>';
}
return '';
}