You are here

function views_accordion_help in Views Accordion 8

Same name and namespace in other branches
  1. 6 views_accordion.module \views_accordion_help()
  2. 7 views_accordion.module \views_accordion_help()
  3. 2.0.x views_accordion.module \views_accordion_help()

Implements hook_help().

File

./views_accordion.module, line 13
Provides an accordion display style for Views.

Code

function views_accordion_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.views_accordion':
      $output = '<p>' . t('The Views Accordion module is a Views style plugin that displays the results in a JQuery accordion style. For more updated information visit the <a href="@link">Views Accordion documentation page</a>.', [
        '@link' => 'http://drupal.org/node/366263',
      ]) . '</p>';
      $output .= '<h3>' . t('How to use the plugin') . '</h3>';
      $output .= t('<strong>IMPORTANT:</strong> The first field in order of appearance will be the one used as the "header" or "trigger" of the accordion action.') . '<br />';
      $output .= '<h4>' . t('Your view must meet these requirements:') . '</h4>';
      $output .= '<ul>';
      $output .= '<li>' . t('<em>Row style</em> must be set to <em>Fields</em>.') . '</li>';
      $output .= '</ul>';
      $output .= '<h4>' . t('Choose <em>Views Accordion</em> in the <em>Style</em> dialog within your view, which will prompt you to configure the jquery.ui.accordion settings.') . '</h4>';
      return $output;
  }
}