remove old readme
[atutor.git] / docs / mods / _standard / tile_search / module.php
1 <?php\r
2 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
3 \r
4 global $_config;\r
5 \r
6 // if this module is to be made available to students on the Home or Main Navigation\r
7 $_student_tool = 'mods/_standard/tile_search/tile.php';\r
8 \r
9 // Add menu item into "Manage" => "Content" \r
10 $this->_pages['mods/_core/content/index.php']['children'] = array('mods/_standard/tile_search/index.php');\r
11 \r
12 // admin page\r
13 if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
14         $this->_pages['admin/config_edit.php']['children'] = array('mods/_standard/tile_search/admin/module_setup.php');\r
15 \r
16         $this->_pages['mods/_standard/tile_search/admin/module_setup.php']['title_var'] = 'tile_setup';\r
17         $this->_pages['mods/_standard/tile_search/admin/module_setup.php']['parent']    = 'admin/config_edit.php';\r
18 //      $this->_pages['mods/_standard/tile_search/admin/module_setup.php']['guide']     = 'admin/?p=tranformable_key.php';\r
19 }\r
20 \r
21 // instructor page\r
22 $this->_pages['mods/_standard/tile_search/index.php']['title_var'] = 'tile_search';\r
23 $this->_pages['mods/_standard/tile_search/index.php']['parent'] = 'mods/_core/content/index.php';\r
24 //$this->_pages['mods/_standard/tile_search/index.php']['children'] = array('mods/_standard/tile_search/import.php');\r
25 $this->_pages['mods/_standard/tile_search/index.php']['guide'] = 'instructor/?p=tile_repository.php';\r
26 \r
27 $this->_pages['mods/_standard/tile_search/import.php']['title_var'] = 'import';\r
28 $this->_pages['mods/_standard/tile_search/import.php']['parent'] = 'mods/_standard/tile_search/index.php';\r
29 \r
30 // student page\r
31 $this->_pages['mods/_standard/tile_search/tile.php']['title_var'] = 'tile_search';\r
32 $this->_pages['mods/_standard/tile_search/tile.php']['img'] = 'images/home-tile_search.png';\r
33 $this->_pages['mods/_standard/tile_search/tile.php']['text'] = _AT('tile_search_text');\r
34 \r
35 /* Constants for Transformable web service - @author Cindy */\r
36 // The URL to the transformable web service search entry\r
37 define('AT_TILE_SEARCH_URL', $_config['transformable_uri'].'search.php');\r
38 \r
39 // The URL to view the transformable course\r
40 define('AT_TILE_VIEW_COURSE_URL', $_config['transformable_uri'].'home/course/index.php?_course_id=');\r
41 \r
42 // The URL to export content package from transformable\r
43 define('AT_TILE_EXPORT_CP_URL', $_config['transformable_uri'].'home/ims/ims_export.php?course_id=');\r
44 \r
45 // The URL to export common cartridge from transformable\r
46 define('AT_TILE_EXPORT_CC_URL', $_config['transformable_uri'].'home/imscc/ims_export.php?to_a4a=1&course_id=');\r
47 \r
48 // The URL to import common cartridge into transformable\r
49 define('AT_TILE_IMPORT_URL', $_config['transformable_uri'].'home/ims/ims_import.php');\r
50 \r
51 // The URLs to perform oauth authentication\r
52 define('AT_TILE_OAUTH_REGISTER_CONSUMER_URL', $_config['transformable_uri'].'oauth/register_consumer.php');\r
53 define('AT_TILE_OAUTH_REQUEST_TOKEN_URL', $_config['transformable_uri'].'oauth/request_token.php');\r
54 define('AT_TILE_OAUTH_AUTHORIZATION_URL', $_config['transformable_uri'].'oauth/authorization.php');\r
55 define('AT_TILE_OAUTH_ACCESS_TOKEN_URL', $_config['transformable_uri'].'oauth/access_token.php');\r
56 \r
57 /* END - Constants for Transformable web service */\r
58 \r
59 ?>