image_popup.module in Simple Image Popup 8
Same filename and directory in other branches
Contains image_popup.module..
File
image_popup.moduleView source
<?php
/**
* @file
* Contains image_popup.module..
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function image_popup_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the image_popup module.
case 'help.page.image_popup':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module gives the popup field formatter for the image field types.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function image_popup_theme($existing, $type, $theme, $path) {
return array(
'image_popup_details' => array(
'variables' => array(
'url_popup' => NULL,
),
'path' => $path . '/templates',
'template' => 'image-popup-formatter',
),
);
}
Functions
Name | Description |
---|---|
image_popup_help | Implements hook_help(). |
image_popup_theme | Implements hook_theme(). |