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