--- /dev/null
+<?php
+
+/**
+ * @file
+ * Contains tocify.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function tocify_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the tocify module.
+ case 'help.page.tocify':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('Tocify your content') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function tocify_theme($existing, $type, $theme, $path) {
+ return array(
+ 'tableofcontents' => array(
+ 'variables' => array(
+ '_theme' => NULL,
+ 'context' => NULL,
+ 'selectors' => NULL,
+ 'show_and_hide' => NULL,
+ 'show_effect' => NULL,
+ 'show_effect_speed' => NULL,
+ 'hide_effect' => NULL,
+ 'hide_effect_speed' => NULL,
+ 'smooth_scroll' => NULL,
+ 'smooth_scroll_speed' => NULL,
+ 'scroll_to' => NULL,
+ 'show_and_hide_on_scroll' => NULL,
+ 'highlight_on_scroll' => NULL,
+ 'highlight_offset' => NULL,
+ 'extend_page' => NULL,
+ 'extend_page_offset' => NULL,
+ 'history' => NULL,
+ 'hash_generator' => NULL,
+ 'highlight_default' => NULL,
+ 'ignore_selector' => NULL,
+ 'scroll_history' => NULL,
+ ),
+ ),
+ );
+}