ATutor 2.0
[atutor.git] / mods / _standard / profile_pictures / 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 \r
6 \r
7 $this->_pages['mods/_standard/profile_pictures/profile_picture.php']['title_var'] = 'picture';\r
8 $this->_pages['mods/_standard/profile_pictures/profile_picture.php']['parent']   = 'users/profile.php';\r
9 \r
10 $this->_pages['users/profile.php']['children']  = array_merge((array) $this->_pages['users/profile.php']['children'],array('mods/_standard/profile_pictures/profile_picture.php'));\r
11 \r
12 if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)) {\r
13         $this->_pages['mods/_standard/profile_pictures/admin/profile_picture.php']['title_var'] = 'picture';\r
14         $this->_pages['mods/_standard/profile_pictures/admin/profile_picture.php']['parent']   = 'admin/users.php';\r
15 }\r
16 ?>