More tidying.
[yaffs-website] / web / modules / contrib / views_bootstrap / views_bootstrap.module
1 <?php
2
3 /**
4  * @file
5  * Custom functions for Views Bootstrap.
6  */
7
8 use Drupal\Core\Routing\RouteMatchInterface;
9 use Drupal\views_bootstrap\ViewsBootstrap;
10
11 /**
12  * Implements hook_help().
13  */
14 function views_bootstrap_help($route_name, RouteMatchInterface $route_match) {
15   switch ($route_name) {
16     case 'help.page.views_bootstrap':
17       $output = '';
18       $output .= '<h3>' . t('About') . '</h3>';
19       $output .= '<p>' . t('The <a href="https://www.drupal.org/project/views_bootstrap">Views Bootstrap module</a> adds styles to Views to output the results of a view as several common <a href="http://getbootstrap.com/components/">Twitter Bootstrap</a> components.') . '</p>';
20       $output .= '<h3>' . t('Uses') . '</h3>';
21       $output .= '<p>' . t('<a href="http://moduledev.dev/admin/structure/views/add">Create a view</a> using one of the following styles:') . '</p>';
22       $output .= '<ul>';
23       $output .= '<li>' . t('<a href="http://getbootstrap.com/css/#grid-example-basic">Grid</a>') . '</li>';
24       $output .= '<li>' . t('<a href="http://getbootstrap.com/css/#tables">Tables</a>') . '</li>';
25       $output .= '<li>' . t('<a href="http://getbootstrap.com/components/#media">Media object</a>') . '</li>';
26       $output .= '<li>' . t('<a href="http://getbootstrap.com/javascript/#collapse-example-accordion">Accordion</a>') . '</li>';
27       $output .= '<li>' . t('<a href="http://getbootstrap.com/javascript/#carousel">Carousel</a>') . '</li>';
28       $output .= '<li>' . t('<a href="http://getbootstrap.com/components/#list-group">List group</a>') . '</li>';
29       $output .= '<ul>';
30
31       return $output;
32   }
33 }
34
35 /**
36  * {@inheritdoc}
37  */
38 function views_bootstrap_theme() {
39   return ViewsBootstrap::getThemeHooks();
40 }