changed git call from https to git readonly
[atutor.git] / mods / google_calendar / module.php
1 <?php\r
2 /*******\r
3  * doesn't allow this file to be loaded with a browser.\r
4  */\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
6 \r
7 /******\r
8  * this file must only be included within a Module obj\r
9  */\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
11 \r
12 /*******\r
13  * assign the instructor and admin privileges to the constants.\r
14  */\r
15 define('AT_PRIV_GOOGLE_CALENDAR',       $this->getPrivilege());\r
16 \r
17 /*******\r
18  * create a side menu box/stack.\r
19  */\r
20 $menu_path =AT_INCLUDE_PATH.'../mods/google_calendar/side_menu.inc.php';\r
21 \r
22 $this->_stacks['google_calendar'] = array('title_var'=>'google_calendar', 'file'=>''.$menu_path.'');\r
23 \r
24 /*******\r
25  * if this module is to be made available to students on the Home or Main Navigation.\r
26  */\r
27 $_group_tool = $_student_tool = 'mods/google_calendar/index.php';\r
28 \r
29 \r
30 /*******\r
31  * instructor Manage section:\r
32  */\r
33 $this->_pages['mods/google_calendar/index_instructor.php']['title_var'] = 'google_calendar';\r
34 $this->_pages['mods/google_calendar/index_instructor.php']['parent']   = 'tools/index.php';\r
35 \r
36 /*******\r
37  * student page.\r
38  */\r
39 $this->_pages['mods/google_calendar/index.php']['title_var'] = 'google_calendar';\r
40 $this->_pages['mods/google_calendar/index.php']['img']       = 'mods/google_calendar/google_cal.gif';\r
41 \r
42 /* my start page pages */\r
43 $this->_pages[AT_NAV_START]  = array('mods/google_calendar/index_mystart.php');\r
44 $this->_pages['mods/google_calendar/index_mystart.php']['title_var'] = 'google_calendar';\r
45 $this->_pages['mods/google_calendar/index_mystart.php']['parent'] = AT_NAV_START;\r
46 \r
47 function google_calendar_get_group_url($group_id) {\r
48         return 'mods/google_calendar/index.php';\r
49 }\r
50 ?>