You are here

function cookie_content_blocker_media_help in Cookie Content Blocker 7

Same name and namespace in other branches
  1. 8 modules/cookie_content_blocker_media/cookie_content_blocker_media.module \cookie_content_blocker_media_help()

Implements hook_help().

File

modules/cookie_content_blocker_media/cookie_content_blocker_media.module, line 11
Contains the main module code for Cookie content blocker - Media.

Code

function cookie_content_blocker_media_help($path, array $arg) {
  if ($path !== 'admin/help#cookie_content_blocker_media') {
    return '';
  }
  $output = file_get_contents(drupal_get_path('module', 'cookie_content_blocker_media') . '/README.md');
  return module_exists('markdown') ? filter_xss_admin(module_invoke('markdown', 'filter', 'process', 0, -1, $output)) : '<pre>' . check_plain($output) . '</pre>';
}