function fb_instant_articles_help_markdown in Facebook Instant Articles 7
Same name and namespace in other branches
- 7.2 fb_instant_articles.module \fb_instant_articles_help_markdown()
Adds markdown module support for displaying README files as Drupal help text.
Parameters
string $string: The unprocessed README file contents string.
Return value
string|false A string containing the markdown filtered text, or FALSE.
See also
2 calls to fb_instant_articles_help_markdown()
- fb_instant_articles_help in ./
fb_instant_articles.module - Implements hook_help().
- fb_instant_articles_views_help in modules/
fb_instant_articles_views/ fb_instant_articles_views.module - Implements hook_help().
File
- ./
fb_instant_articles.module, line 131 - Hook implementations for Facebook Instant Articles Base module.
Code
function fb_instant_articles_help_markdown($string) {
if (module_exists('markdown')) {
$filters = module_invoke('markdown', 'filter_info');
$info = $filters['filter_markdown'];
if (function_exists($info['process callback'])) {
return $info['process callback']($string, NULL);
}
return FALSE;
}
}