summaryrefslogtreecommitdiff
path: root/modules/fahad/festivals/festivals.module
diff options
context:
space:
mode:
authorNitesh Kumar Sinha2019-07-02 13:32:41 +0530
committerGitHub2019-07-02 13:32:41 +0530
commit40040427eb696b443a52db952ce6915d3ee72a97 (patch)
tree5dde0580ac282768aeb48226e7d10c2e3f691172 /modules/fahad/festivals/festivals.module
parent222f1780ed0f5c3536392df3236284d3a9ab5405 (diff)
parent5f6ba9cf4aee260e4192f194ed14d3bc9dd1b467 (diff)
downloadacadmix_distribution-40040427eb696b443a52db952ce6915d3ee72a97.tar.gz
acadmix_distribution-40040427eb696b443a52db952ce6915d3ee72a97.tar.bz2
acadmix_distribution-40040427eb696b443a52db952ce6915d3ee72a97.zip
Merge pull request #6 from fahad-israr/master
Fahad: Custom Module Added
Diffstat (limited to 'modules/fahad/festivals/festivals.module')
-rw-r--r--modules/fahad/festivals/festivals.module35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/fahad/festivals/festivals.module b/modules/fahad/festivals/festivals.module
new file mode 100644
index 0000000..01a7a72
--- /dev/null
+++ b/modules/fahad/festivals/festivals.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains festivals.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function festivals_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the festivals module.
+ case 'help.page.festivals':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function festivals_theme() {
+ return [
+ 'festivals' => [
+ 'render element' => 'children',
+ ],
+ ];
+}