simple_iframe.module in Simple iframe 8
Contains simple_iframe.module.
File
simple_iframe.moduleView source
<?php
/**
* @file
* Contains simple_iframe.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function simple_iframe_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the simple_iframe module.
case 'help.page.simple_iframe':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Simple field formatter for iframe display') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function simple_iframe_theme() {
return [
'simple_iframe' => [
'variables' => [
'url' => NULL,
'width' => NULL,
'height' => NULL,
],
],
];
}
Functions
Name | Description |
---|---|
simple_iframe_help | Implements hook_help(). |
simple_iframe_theme | Implements hook_theme(). |