function cookiebot_help in Cookiebot - Cookie consent, Cookie monitoring and Cookie control 7
Same name and namespace in other branches
- 8 cookiebot.module \cookiebot_help()
Implements hook_help().
File
- ./
cookiebot.module, line 11 - The Cookiebot main module file.
Code
function cookiebot_help($path, $arg) {
if ($path !== 'admin/help#cookiebot') {
return '';
}
$output = file_get_contents(drupal_get_path('module', 'cookiebot') . '/README.md');
return module_exists('markdown') ? filter_xss_admin(module_invoke('markdown', 'filter', 'process', 0, -1, $output)) : '<pre>' . check_plain($output) . '</pre>';
}