function uikit_views_help in UIkit Components 7.3
Same name and namespace in other branches
- 8.3 uikit_views/uikit_views.module \uikit_views_help()
- 8 uikit_views/uikit_views.module \uikit_views_help()
- 8.2 uikit_views/uikit_views.module \uikit_views_help()
- 7.2 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/docs/accordion',
'!grid' => 'https://getuikit.com/docs/grid',
'!list' => 'https://getuikit.com/docs/list',
'!table' => 'https://getuikit.com/docs/table',
// @todo Future plugin style components.
'!card' => 'https://getuikit.com/docs/card',
'!cover' => 'https://getuikit.com/docs/cover',
'!nav' => 'https://getuikit.com/docs/nav',
'!slidenav' => 'https://getuikit.com/docs/slidenav',
'!subnav' => 'https://getuikit.com/docs/subnav',
);
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;
}