summaryrefslogtreecommitdiff
path: root/modules/mansimran/chapters/chapters.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mansimran/chapters/chapters.module')
-rw-r--r--modules/mansimran/chapters/chapters.module35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/mansimran/chapters/chapters.module b/modules/mansimran/chapters/chapters.module
new file mode 100644
index 0000000..9d6c121
--- /dev/null
+++ b/modules/mansimran/chapters/chapters.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains chapters.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function chapters_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the chapters module.
+ case 'help.page.chapters':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function chapters_theme() {
+ return [
+ 'chapters' => [
+ 'render element' => 'children',
+ ],
+ ];
+}