tagging as ATutor 1.5.4-release
[atutor.git] / mods / _standard / google_search / module.php
1 <?php\r
2 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
3 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
4 \r
5 $_student_tool = 'google_search/index.php';\r
6 \r
7 if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
8         $this->_pages['admin/config_edit.php']['children'] = array('google_search/admin/module_prefs.php');\r
9 \r
10         $this->_pages['google_search/admin/module_prefs.php']['title_var'] = 'google_key';\r
11         $this->_pages['google_search/admin/module_prefs.php']['parent']    = 'admin/config_edit.php';\r
12         $this->_pages['google_search/admin/module_prefs.php']['guide']     = 'admin/?p=google_key.php';\r
13 \r
14 }\r
15 \r
16 \r
17 //side menu\r
18 $this->_stacks['google_search'] = array('title_var'=>'google_search', 'file'=>dirname(__FILE__).'/side_menu.inc.php');\r
19 \r
20 \r
21 $this->_pages['google_search/index.php']['title_var'] = 'google_search';\r
22 $this->_pages['google_search/index.php']['img']       = 'google_search/google.gif';\r
23 \r
24 ?>