-
Notifications
You must be signed in to change notification settings - Fork 0
/
views_tree.module
55 lines (51 loc) · 1.11 KB
/
views_tree.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
51
52
53
54
55
<?php
/**
* @file
* Views Tree module.
*/
/**
* Implements hook_views_api().
*/
function views_tree_views_api() {
return array(
'api' => '3',
'path' => backdrop_get_path('module', 'views_tree'),
);
}
/**
* Implements hook_autoload_info().
*/
function views_tree_autoload_info() {
return array(
'views_tree_plugin_style_tree' => 'views_tree_plugin_style_tree.inc',
);
}
/**
* Implements hook_theme().
*/
function views_tree_theme($existing, $type, $theme, $path) {
return array(
'views_view_tree' => array(
'variables' => array(
'view' => NULL,
'options' => array(),
'rows' => array(),
'title' => NULL,
),
'file' => 'views_tree.theme.inc',
'path' => backdrop_get_path('module', 'views_tree'),
),
'views_tree_inner' => array(
'variables' => array(
'view' => NULL,
'options' => array(),
'rows' => array(),
'title' => NULL,
'result' => array(),
'parent' => NULL,
),
'file' => 'views_tree.theme.inc',
'path' => backdrop_get_path('module', 'views_tree'),
),
);
}