summaryrefslogtreecommitdiff
path: root/modules/fahad/faq/faq.module
diff options
context:
space:
mode:
authorFahad Israr2019-07-02 12:21:29 +0530
committerFahad Israr2019-07-02 12:21:29 +0530
commit96794064b20917436ce73aedf015a9d53e8d00fb (patch)
treea5240a2a6e5c148ae7a95d9652aa6dee219e820b /modules/fahad/faq/faq.module
parent3ad1b8d590d7d11d83e8c923970690900dc31f70 (diff)
downloadacadmix_distribution-96794064b20917436ce73aedf015a9d53e8d00fb.tar.gz
acadmix_distribution-96794064b20917436ce73aedf015a9d53e8d00fb.tar.bz2
acadmix_distribution-96794064b20917436ce73aedf015a9d53e8d00fb.zip
Custom Modules Added
Diffstat (limited to 'modules/fahad/faq/faq.module')
-rw-r--r--modules/fahad/faq/faq.module35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/fahad/faq/faq.module b/modules/fahad/faq/faq.module
new file mode 100644
index 0000000..025f6b6
--- /dev/null
+++ b/modules/fahad/faq/faq.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains faq.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function faq_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the faq module.
+ case 'help.page.faq':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function faq_theme() {
+ return [
+ 'faq' => [
+ 'render element' => 'children',
+ ],
+ ];
+}