You are here

flot.module in Flot 8

Same filename and directory in other branches
  1. 6 flot.module
  2. 7 flot.module

A collection on module hooks for the flot module.

File

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

Namesort descending Description
flot_theme Implements hook_theme().
theme_flot Implements theme_hook().