function hook_update_deploy_tools_help in Hook Update Deploy Tools 7
Same name and namespace in other branches
- 8 hook_update_deploy_tools.module \hook_update_deploy_tools_help()
Implements hook_help().
File
- ./
hook_update_deploy_tools.module, line 13 - Hooks and other module requirements.
Code
function hook_update_deploy_tools_help($path, $arg) {
switch ($path) {
case 'admin/help#hook_update_deploy_tools':
$content = file_get_contents(drupal_get_path('module', 'hook_update_deploy_tools') . '/README.md');
if (module_exists('markdown') && module_load_include('module', 'markdown', 'markdown') && function_exists('_filter_markdown')) {
// Markdown can be used.
module_load_include('module', 'markdown', 'markdown');
$output = filter_xss_admin(_filter_markdown($content, 'markdown'));
}
if (empty($output)) {
// Markdown is not available.
$output = '<pre>' . check_plain($content) . '</pre>';
}
return $output;
}
}