tagging as ATutor 1.5.4-release
[atutor.git] / mods / _standard / faq / 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 define('AT_PRIV_FAQ', $this->getPrivilege());\r
6 \r
7 // if this module is to be made available to students on the Home or Main Navigation\r
8 $_student_tool = 'faq/index.php';\r
9 \r
10 \r
11 // instructor Manage section:\r
12 $this->_pages['faq/index_instructor.php']['title_var'] = 'faq';\r
13 $this->_pages['faq/index_instructor.php']['parent']    = 'tools/index.php';\r
14 $this->_pages['faq/index_instructor.php']['children']  = array('faq/add_topic.php', 'faq/add_question.php');\r
15 $this->_pages['faq/index_instructor.php']['guide']     = 'instructor/?p=faq.php';\r
16 \r
17 \r
18         $this->_pages['faq/add_topic.php']['title_var'] = 'add_topic';\r
19         $this->_pages['faq/add_topic.php']['parent']    = 'faq/index_instructor.php';\r
20 \r
21         $this->_pages['faq/delete_topic.php']['title_var'] = 'delete';\r
22         $this->_pages['faq/delete_topic.php']['parent']    = 'faq/index_instructor.php';\r
23 \r
24         $this->_pages['faq/edit_topic.php']['title_var'] = 'edit';\r
25         $this->_pages['faq/edit_topic.php']['parent']    = 'faq/index_instructor.php';\r
26 \r
27         $this->_pages['faq/add_question.php']['title_var'] = 'add_question';\r
28         $this->_pages['faq/add_question.php']['parent']    = 'faq/index_instructor.php';\r
29 \r
30         $this->_pages['faq/delete_question.php']['title_var'] = 'delete';\r
31         $this->_pages['faq/delete_question.php']['parent']    = 'faq/index_instructor.php';\r
32 \r
33         $this->_pages['faq/edit_question.php']['title_var'] = 'edit';\r
34         $this->_pages['faq/edit_question.php']['parent']    = 'faq/index_instructor.php';\r
35 \r
36 // student page:\r
37 $this->_pages['faq/index.php']['title_var'] = 'faq';\r
38 $this->_pages['faq/index.php']['img']       = 'faq/icon.gif';\r
39 \r
40 ?>