diff options
author | Nitesh Kumar Sinha | 2019-07-02 13:32:41 +0530 |
---|---|---|
committer | GitHub | 2019-07-02 13:32:41 +0530 |
commit | 40040427eb696b443a52db952ce6915d3ee72a97 (patch) | |
tree | 5dde0580ac282768aeb48226e7d10c2e3f691172 /modules/fahad/facility/facility.module | |
parent | 222f1780ed0f5c3536392df3236284d3a9ab5405 (diff) | |
parent | 5f6ba9cf4aee260e4192f194ed14d3bc9dd1b467 (diff) | |
download | acadmix_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.module | 35 |
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', + ], + ]; +} |