flot.module in Flot 8
Same filename and directory in other branches
A collection on module hooks for the flot module.
File
flot.moduleView source
<?php
/**
* @file
* A collection on module hooks for the flot module.
*/
/**
* Implements hook_theme().
*/
function flot_theme(array $existing, $type, $theme, $path) {
return [
'flot_element' => [
'variables' => [
'id' => NULL,
],
'flot' => [
'render element' => 'flot',
],
],
];
}
/**
* Implements theme_hook().
*
* Should this be moved to a theme.inc file?
*/
function theme_flot($variables) {
$output = $variables['flot'];
return $output;
}
Functions
Name | Description |
---|---|
flot_theme | Implements hook_theme(). |
theme_flot | Implements theme_hook(). |