You are here

function blazy_photoswipe_help in Blazy PhotoSwipe 8

Same name and namespace in other branches
  1. 7 blazy_photoswipe.module \blazy_photoswipe_help()

Implements hook_help().

File

./blazy_photoswipe.module, line 91
Provides a simple Blazy PhotoSwipe integration.

Code

function blazy_photoswipe_help($route_name) {
  if ($route_name == 'help.page.blazy_photoswipe') {
    $output = file_get_contents(dirname(__FILE__) . '/README.md');

    // @todo remove check once Blazy has stable release.
    return function_exists('blazy_parse_markdown') ? blazy_parse_markdown($output) : '<pre>' . $output . '</pre>';
  }
  return '';
}