-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgroup_menu.php
28 lines (26 loc) · 1011 Bytes
/
group_menu.php
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
<?php
// setup menu item
$menu['sidebar']['emoncms'][] = array(
'text' => _("Groups"),
'path' => 'group',
'icon' => 'users',
'data'=> array('sidebar' => '#sidebar_group')
);
// Display info about previous user logged in
// ----------------------------------------------------------------------------------------
if (isset($_SESSION) != false && key_exists('previous_userid', $_SESSION) == true) {
$menu['sidebar']['includes']['setup']['group'][] = array(
'text' => $_SESSION['previous_username'] . " => " . $_SESSION['username'],
'path' => 'group/logasprevioususer',
);
}
// sub menu
$menu['sidebar']['includes']['emoncms']['group'][] = array(
'text' => _('New Group'),
'id' => 'groupcreate',
'icon' => 'plus',
'href' => '#new',
'order'=> 99
);
$menu['sidebar']['includes']['emoncms']['group'][] = view('Modules/group/Views/search.php',array());
$menu['sidebar']['includes']['emoncms']['group'][] = view('Modules/group/Views/grouplist.php',array());