summaryrefslogtreecommitdiff
path: root/modules/fahad/facility/facility.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/facility/facility.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/facility/facility.module')
-rw-r--r--modules/fahad/facility/facility.module35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/fahad/facility/facility.module b/modules/fahad/facility/facility.module
new file mode 100644
index 0000000..ee4bd23
--- /dev/null
+++ b/modules/fahad/facility/facility.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains facility.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function facility_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the facility module.
+ case 'help.page.facility':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function facility_theme() {
+ return [
+ 'facility' => [
+ 'render element' => 'children',
+ ],
+ ];
+}