Skip to content

Commit 9736e81

Browse files
committed
add back loader to the theme
1 parent cb24d93 commit 9736e81

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

flot.info

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
name = Flot
2-
description = Provides an API for the flot js graphing library.
3-
core = 7.x
4-
1+
name = "Flot"
2+
description = "Provides an API for the flot js graphing library."
3+
core = "7.x"
54

65
files[] = flot.module
76
files[] = views/flot_handler_field_datapoint.inc

flot.module

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function flot_views_api() {
1616
function flot_theme() {
1717
return array(
1818
'flot_graph' => array(
19-
'variables' => array('element' => array(), 'data' => array(), 'options' => array()),
19+
'variables' => array('element' => array(), 'data' => array(), 'options' => array(), 'loader' => FALSE),
2020
),
2121
);
2222
}
@@ -48,7 +48,8 @@ function theme_flot_graph($variables) {
4848
$element = $variables['element'];
4949
$data = $variables['data'];
5050
$options = $variables['options'];
51-
// TODO Number of parameters in this theme funcion does not match number of parameters found in hook_theme.
51+
$loader = $variables['loader'];
52+
5253
static $n;
5354
if (!isset($element['id'])) {
5455
$n++;

0 commit comments

Comments
 (0)