function responsive_favicons_help in Responsive Favicons 7
Same name and namespace in other branches
- 8 responsive_favicons.module \responsive_favicons_help()
Implements hook_help().
File
- ./
responsive_favicons.module, line 11 - Responsive favicons module file.
Code
function responsive_favicons_help($path, $arg) {
switch ($path) {
case 'admin/help#responsive_favicons':
$readme_file = dirname(__FILE__) . '/README.txt';
if (file_exists($readme_file)) {
$readme = file_get_contents($readme_file);
}
if (!isset($readme)) {
return '';
}
// Markdown is optionally supported if you already have it installed.
if (module_exists('markdown')) {
$filters = module_invoke('markdown', 'filter_info');
$info = $filters['filter_markdown'];
if (function_exists($info['process callback'])) {
$function = $info['process callback'];
$output = filter_xss_admin($function($readme, NULL));
}
else {
$output = '<pre>' . check_plain($readme) . '</pre>';
}
}
else {
$output = '<pre>' . check_plain($readme) . '</pre>';
}
return $output;
}
}