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