-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpps_energy_tracker.module
executable file
·50 lines (49 loc) · 1.39 KB
/
pps_energy_tracker.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* @file
* PPS Energy Tracker, provides the end user with a means to see historical and predictive electricity pricing.
* This file in particular routes the various pages to the correct TWIG templates.
*/
/**
* Implements hook_theme()
* @param $existing
* @param $type
* @param $theme
* @param $path
* @return array
*/
function pps_energy_tracker_theme($existing, $type, $theme, $path) {
return array(
'pps_energy_tracker' => array(
'variables' => array(),
'template' => 'pps_energy_tracker',
),
'pps_energy_tracker_account_management' => array(
'variables' => array(
'element_content' => NULL,
'table_content' => NULL,
),
'template' => 'pps_energy_tracker_account_management',
),
'pps_energy_tracker_electricity_graphs' => array(
'variables' => array(
'graph_data' => NULL,
'element_content' => NULL,
'table_content' => NULL,
'graph_name' => NULL,
),
'template' => 'pps_energy_tracker_electricity_graphs',
),
'pps_energy_tracker_natural_gas_graphs' => array(
'variables' => array(),
'template' => 'pps_energy_tracker_natural_gas_graphs',
),
'pps_energy_tracker_generic_graphs' => array(
'variables' => array(
'element_content' => NULL,
'graph_data' => NULL,
),
'template' => 'pps_energy_tracker_generic_graphs',
),
);
}