You are here

image_popup.module in Simple Image Popup 8

Same filename and directory in other branches
  1. 2.x image_popup.module

Contains image_popup.module..

File

image_popup.module
View 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

Namesort descending Description
image_popup_help Implements hook_help().
image_popup_theme Implements hook_theme().