summaryrefslogtreecommitdiff
path: root/modules/fahad/facility/facility.module
diff options
context:
space:
mode:
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',
+ ],
+ ];
+}