diff options
author | Nitesh Kumar Sinha | 2019-07-02 12:18:29 +0530 |
---|---|---|
committer | GitHub | 2019-07-02 12:18:29 +0530 |
commit | 847360bf5ac011771dc013677542ece7b356a528 (patch) | |
tree | e11370475afe87870b8efa2aa8d242a7563329dd /modules/mansimran/administrative_offices/administrative_offices.module | |
parent | 6b65fd6d7fda826b967442aabb10ead6197aa4b2 (diff) | |
parent | 4e585c030ed6b5ea73b77a696a78f8855d9a26d8 (diff) | |
download | acadmix_distribution-847360bf5ac011771dc013677542ece7b356a528.tar.gz acadmix_distribution-847360bf5ac011771dc013677542ece7b356a528.tar.bz2 acadmix_distribution-847360bf5ac011771dc013677542ece7b356a528.zip |
Merge pull request #4 from Mansimran7/master
Mansimran - custom modules
Diffstat (limited to 'modules/mansimran/administrative_offices/administrative_offices.module')
-rw-r--r-- | modules/mansimran/administrative_offices/administrative_offices.module | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/mansimran/administrative_offices/administrative_offices.module b/modules/mansimran/administrative_offices/administrative_offices.module new file mode 100644 index 0000000..125d9da --- /dev/null +++ b/modules/mansimran/administrative_offices/administrative_offices.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains administrative_offices.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function administrative_offices_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the administrative_offices module. + case 'help.page.administrative_offices': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('Administrative offices content type') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function administrative_offices_theme() { + return [ + 'administrative_offices' => [ + 'render element' => 'children', + ], + ]; +} |