function cookie_content_blocker_ckeditor_help in Cookie Content Blocker 7
Implements hook_help().
File
- modules/
cookie_content_blocker_ckeditor/ cookie_content_blocker_ckeditor.module, line 11 - Contains the main module code for Cookie content blocker - CKEditor.
Code
function cookie_content_blocker_ckeditor_help($path, array $arg) {
if ($path !== 'admin/help#cookie_content_blocker_ckeditor') {
return '';
}
$output = file_get_contents(drupal_get_path('module', 'cookie_content_blocker_ckeditor') . '/README.md');
return module_exists('markdown') ? filter_xss_admin(module_invoke('markdown', 'filter', 'process', 0, -1, $output)) : '<pre>' . check_plain($output) . '</pre>';
}