You are here

function slick_ui_help in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 slick_ui/slick_ui.module \slick_ui_help()
  2. 7.3 slick_ui/slick_ui.module \slick_ui_help()
  3. 7.2 slick_ui/slick_ui.module \slick_ui_help()

Implements hook_help().

File

slick_ui/slick_ui.module, line 32
Provides Slick carousel configuration entity UI.

Code

function slick_ui_help($route_name) {
  if ($route_name == 'help.page.slick_ui') {
    $output = file_get_contents(dirname(dirname(__FILE__)) . '/docs/README.md');
    $output .= file_get_contents(dirname(dirname(__FILE__)) . '/docs/FAQS.md');
    $output .= file_get_contents(dirname(dirname(__FILE__)) . '/docs/TROUBLESHOOTING.md');
    $output .= file_get_contents(dirname(dirname(__FILE__)) . '/docs/CONTRIBUTION.md');
    $output .= file_get_contents(dirname(dirname(__FILE__)) . '/docs/MAINTAINERS.md');
    return function_exists('blazy_parse_markdown') ? blazy_parse_markdown($output) : '<pre>' . $output . '</pre>';
  }
  return '';
}