You are here

function mixitup_views_help in MixItUp Views 8

Same name and namespace in other branches
  1. 8.2 mixitup_views.module \mixitup_views_help()
  2. 7 mixitup_views.module \mixitup_views_help()

Implements hook_help().

File

./mixitup_views.module, line 13
Contains mixitup_views.module.

Code

function mixitup_views_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the mixitup_views module.
    case 'help.page.mixitup_views':
      $path = dirname(__FILE__) . '/README.txt';
      if (file_exists($path)) {
        $readme = file_get_contents($path);
      }
      if (!isset($readme)) {
        return NULL;
      }
      $output = '<pre>' . $readme . '</pre>';
      return $output;
    default:
  }
}