Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / tocify / tocify.module
1 <?php
2
3 /**
4  * @file
5  * Contains tocify.module.
6  */
7
8 use Drupal\Core\Routing\RouteMatchInterface;
9
10 /**
11  * Implements hook_help().
12  */
13 function tocify_help($route_name, RouteMatchInterface $route_match) {
14   switch ($route_name) {
15     // Main module help for the tocify module.
16     case 'help.page.tocify':
17       $output = '';
18       $output .= '<h3>' . t('About') . '</h3>';
19       $output .= '<p>' . t('Tocify your content') . '</p>';
20       return $output;
21
22     default:
23   }
24 }
25
26 /**
27  * Implements hook_theme().
28  */
29 function tocify_theme($existing, $type, $theme, $path) {
30   return array(
31     'tableofcontents' => array(
32       'variables' => array(
33         '_theme' => NULL,
34         'context' => NULL,
35         'selectors' => NULL,
36         'show_and_hide' => NULL,
37         'show_effect' => NULL,
38         'show_effect_speed' => NULL,
39         'hide_effect' => NULL,
40         'hide_effect_speed' => NULL,
41         'smooth_scroll' => NULL,
42         'smooth_scroll_speed' => NULL,
43         'scroll_to' => NULL,
44         'show_and_hide_on_scroll' => NULL,
45         'highlight_on_scroll' => NULL,
46         'highlight_offset' => NULL,
47         'extend_page' => NULL,
48         'extend_page_offset' => NULL,
49         'history' => NULL,
50         'hash_generator' => NULL,
51         'highlight_default' => NULL,
52         'ignore_selector' => NULL,
53         'scroll_history' => NULL,
54       ),
55     ),
56   );
57 }