You are here

function superfish_help in Superfish 8

Same name and namespace in other branches
  1. 6 superfish.module \superfish_help()
  2. 7 superfish.module \superfish_help()

Implements hook_help().

File

./superfish.module, line 374
The jQuery Superfish plugin for Drupal menus.

Code

function superfish_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.superfish':
      $output = [
        '#theme' => 'superfish_help',
        '#title' => t('About Superfish'),
        '#content' => t('<a href="@url_module">Superfish module</a> integrates <a href="@url_library">jQuery Superfish</a> plugin to your Drupal menu blocks. Please refer to the module <a href="@url_documentation">documentation</a> for more information.', [
          '@url_library' => 'https://github.com/mehrpadin/Superfish-for-Drupal',
          '@url_module' => 'https://www.drupal.org/project/superfish',
          '@url_documentation' => 'https://www.drupal.org/node/1125896',
        ]),
      ];
      return $output;
  }
}