3 * doesn't allow this file to be loaded with a browser.
\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
8 * this file must only be included within a Module obj
\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
13 * assign the instructor and admin privileges to the constants.
\r
15 define('AT_PRIV_GOOGLE_CALENDAR', $this->getPrivilege());
\r
18 * create a side menu box/stack.
\r
20 $menu_path =AT_INCLUDE_PATH.'../mods/google_calendar/side_menu.inc.php';
\r
22 $this->_stacks['google_calendar'] = array('title_var'=>'google_calendar', 'file'=>''.$menu_path.'');
\r
25 * if this module is to be made available to students on the Home or Main Navigation.
\r
27 $_group_tool = $_student_tool = 'mods/google_calendar/index.php';
\r
31 * instructor Manage section:
\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
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
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
47 function google_calendar_get_group_url($group_id) {
\r
48 return 'mods/google_calendar/index.php';
\r