-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.php
More file actions
29 lines (28 loc) · 839 Bytes
/
plugin.php
File metadata and controls
29 lines (28 loc) · 839 Bytes
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
<?php
if(is_readable(__DIR__.'/../SecurePlugin.php'))
{
require_once(__DIR__.'/../SecurePlugin.php');
}
class FVSPlugin extends \Flipside\Secure\SecurePlugin
{
function get_secure_menu_entries($page, $user)
{
$ret = array(
'Volunteer' => $page->secure_root.'fvs/index.php',
'Volunteer - Guided Signup' => $page->secure_root.'fvs/guidedEvent.php',
);
if($user !== null && $user->isInGroupNamed('VolunteerAdmins'))
{
$ret['Volunteer System Admin'] = $page->secure_root.'fvs/_admin/index.php';
}
return $ret;
}
function get_plugin_entry_point()
{
return array(
'name'=>'Volunteer',
'link' => 'fvs/index.php'
);
}
}
/* vim: set tabstop=4 shiftwidth=4 expandtab: */