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
5 define('AT_PRIV_POLLS', $this->getPrivilege());
\r
8 $this->_stacks['poll'] = array('title_var'=>'poll','file'=>AT_INCLUDE_PATH.'../mods/_standard/polls/dropdown/poll.inc.php');
\r
10 //modules sub-content
\r
11 $this->_list['polls'] = array('title_var'=>'polls','file'=>'mods/_standard/polls/sublinks.php');
\r
14 //$this->_tool['polls'] = array('title_var'=>'polls','file'=>'polls_tool.php');
\r
16 // if this module is to be made available to students on the Home or Main Navigation
\r
17 $_student_tool = 'mods/_standard/polls/index.php';
\r
19 $this->_pages['mods/_standard/polls/index.php']['title_var'] = 'polls';
\r
20 $this->_pages['mods/_standard/polls/index.php']['img'] = 'images/home-polls.png';
\r
21 $this->_pages['mods/_standard/polls/index.php']['icon'] = 'images/home-polls_sm.png';
\r
23 $this->_pages['mods/_standard/polls/tools/index.php']['title_var'] = 'polls';
\r
24 $this->_pages['mods/_standard/polls/tools/index.php']['parent'] = 'tools/index.php';
\r
25 $this->_pages['mods/_standard/polls/tools/index.php']['children'] = array('mods/_standard/polls/tools/add.php');
\r
26 $this->_pages['mods/_standard/polls/tools/index.php']['guide'] = 'instructor/?p=polls.php';
\r
28 $this->_pages['mods/_standard/polls/tools/add.php']['title_var'] = 'add_poll';
\r
29 $this->_pages['mods/_standard/polls/tools/add.php']['parent'] = 'mods/_standard/polls/tools/index.php';
\r
31 $this->_pages['mods/_standard/polls/tools/edit.php']['title_var'] = 'edit_poll';
\r
32 $this->_pages['mods/_standard/polls/tools/edit.php']['parent'] = 'mods/_standard/polls/tools/index.php';
\r
34 $this->_pages['mods/_standard/polls/tools/delete.php']['title_var'] = 'delete_poll';
\r
35 $this->_pages['mods/_standard/polls/tools/delete.php']['parent'] = 'mods/_standard/polls/tools/index.php';
\r