diff options
author | oskkw | 2019-07-03 17:29:48 +0530 |
---|---|---|
committer | oskkw | 2019-07-03 17:29:48 +0530 |
commit | 973ac75b1994043360b8e62cd0c83461310ee728 (patch) | |
tree | 445a92ce631b794ed9f501a1602a144052e29068 /modules/kalpesh/photo_gallery/photo_gallery.module | |
parent | 58dbf8fcb04c01c338b9e346b8266690c8b92a2f (diff) | |
download | acadmix_distribution-973ac75b1994043360b8e62cd0c83461310ee728.tar.gz acadmix_distribution-973ac75b1994043360b8e62cd0c83461310ee728.tar.bz2 acadmix_distribution-973ac75b1994043360b8e62cd0c83461310ee728.zip |
custom module added
Diffstat (limited to 'modules/kalpesh/photo_gallery/photo_gallery.module')
-rw-r--r-- | modules/kalpesh/photo_gallery/photo_gallery.module | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/kalpesh/photo_gallery/photo_gallery.module b/modules/kalpesh/photo_gallery/photo_gallery.module new file mode 100644 index 0000000..ed6ed11 --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains photo_gallery.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function photo_gallery_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the photo_gallery module. + case 'help.page.photo_gallery': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module is use for stylish photo gallery') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function photo_gallery_theme() { + return [ + 'photo_gallery' => [ + 'render element' => 'children', + ], + ]; +} |