function hook_update_deploy_tools_help in Hook Update Deploy Tools 8
Same name and namespace in other branches
- 7 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':
$output = file_get_contents(drupal_get_path('module', 'hook_update_deploy_tools') . '/README.md');
if (module_exists('markdown')) {
// Markdown can be used.
module_load_include('php', 'markdown', 'markdown');
$output = Markdown($output);
}
else {
// Markdown is not available.
$output = '<pre>' . $output . '</pre>';
}
return $output;
}
}