You are here

function uikit_views_help in UIkit Components 7.2

Same name and namespace in other branches
  1. 8.3 uikit_views/uikit_views.module \uikit_views_help()
  2. 8 uikit_views/uikit_views.module \uikit_views_help()
  3. 8.2 uikit_views/uikit_views.module \uikit_views_help()
  4. 7.3 uikit_views/uikit_views.module \uikit_views_help()

Implements hook_help().

File

uikit_views/uikit_views.module, line 13
UIkit Views.

Code

function uikit_views_help($path, $arg) {
  $output = '';

  // Setup translatable string arguments.
  $t_args = array(
    '!uikit' => 'https://www.drupal.org/project/uikit',
    // Current plugin style components.
    '!accordion' => 'https://getuikit.com/v2/docs/accordion.html',
    '!grid' => 'https://getuikit.com/v2/docs/grid.html',
    '!list' => 'https://getuikit.com/v2/docs/list.html',
    '!table' => 'https://getuikit.com/v2/docs/table.html',
    // @todo Future plugin style components.
    '!block' => 'https://getuikit.com/v2/docs/block.html',
    '!cover' => 'https://getuikit.com/v2/docs/cover.html',
    '!nav' => 'https://getuikit.com/v2/docs/nav.html',
    '!panel' => 'https://getuikit.com/v2/docs/panel.html',
    '!slideshow' => 'https://getuikit.com/v2/docs/slideshow.html',
    '!subnav' => 'https://getuikit.com/v2/docs/subnav.html',
  );
  switch ($path) {
    case 'admin/help#uikit_views':
      $output = '<p>' . t('The UIkit Views module provides Views plugins for the <a href="!uikit" target="_blank">UIkit theme</a>.', $t_args) . '</p>';
      $output .= '<h3>' . t('Views plugins') . '</h3>';
      $output .= '<p>' . t('<strong>Style</strong>: Style plugins control how a view is displayed. For the most part they are object wrappers around theme templates. Styles UIkit Views provides:') . '</p>';
      $output .= '<ul>';
      $output .= '<li>' . t('<a href="!accordion" target="_blank">Accordion</a>', $t_args) . '</li>';
      $output .= '<li>' . t('<a href="!grid" target="_blank">Grid</a>', $t_args) . '</li>';
      $output .= '<li>' . t('<a href="!list" target="_blank">List</a>', $t_args) . '</li>';
      $output .= '<li>' . t('<a href="!table" target="_blank">Table</a>', $t_args) . '</li>';
      $output .= '</ul>';
      break;
  }
  return $output;
}