More tidying.
[yaffs-website] / web / modules / contrib / views_bootstrap / views_bootstrap.module
diff --git a/web/modules/contrib/views_bootstrap/views_bootstrap.module b/web/modules/contrib/views_bootstrap/views_bootstrap.module
new file mode 100644 (file)
index 0000000..ca3cea0
--- /dev/null
@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * @file
+ * Custom functions for Views Bootstrap.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\views_bootstrap\ViewsBootstrap;
+
+/**
+ * Implements hook_help().
+ */
+function views_bootstrap_help($route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    case 'help.page.views_bootstrap':
+      $output = '';
+      $output .= '<h3>' . t('About') . '</h3>';
+      $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>';
+      $output .= '<h3>' . t('Uses') . '</h3>';
+      $output .= '<p>' . t('<a href="http://moduledev.dev/admin/structure/views/add">Create a view</a> using one of the following styles:') . '</p>';
+      $output .= '<ul>';
+      $output .= '<li>' . t('<a href="http://getbootstrap.com/css/#grid-example-basic">Grid</a>') . '</li>';
+      $output .= '<li>' . t('<a href="http://getbootstrap.com/css/#tables">Tables</a>') . '</li>';
+      $output .= '<li>' . t('<a href="http://getbootstrap.com/components/#media">Media object</a>') . '</li>';
+      $output .= '<li>' . t('<a href="http://getbootstrap.com/javascript/#collapse-example-accordion">Accordion</a>') . '</li>';
+      $output .= '<li>' . t('<a href="http://getbootstrap.com/javascript/#carousel">Carousel</a>') . '</li>';
+      $output .= '<li>' . t('<a href="http://getbootstrap.com/components/#list-group">List group</a>') . '</li>';
+      $output .= '<ul>';
+
+      return $output;
+  }
+}
+
+/**
+ * {@inheritdoc}
+ */
+function views_bootstrap_theme() {
+  return ViewsBootstrap::getThemeHooks();
+}