diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-04 11:08:16 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-04 11:08:16 +0000 |
commit | d429cdeb9b74bb6452270d169f0c9fc5f325122e (patch) | |
tree | 5e8d5a2b7570a8d4d23d551930f208e0fea539d3 /mod/guidtool/start.php | |
parent | 91ddcf79742a6c116b12c2aff3bacdbde525bf2a (diff) | |
download | elgg-d429cdeb9b74bb6452270d169f0c9fc5f325122e.tar.gz elgg-d429cdeb9b74bb6452270d169f0c9fc5f325122e.tar.bz2 |
Moved GUID tool to admin menu.
git-svn-id: https://code.elgg.org/elgg/trunk@3061 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidtool/start.php')
-rw-r--r-- | mod/guidtool/start.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mod/guidtool/start.php b/mod/guidtool/start.php index 0a416320b..8dc9dd65a 100644 --- a/mod/guidtool/start.php +++ b/mod/guidtool/start.php @@ -16,14 +16,14 @@ { global $CONFIG; - if (isadminloggedin()) + /*if (isadminloggedin()) { add_menu(elgg_echo('guidtool'), $CONFIG->wwwroot . "pg/guidtool/",array( // menu_item(elgg_echo('guidtool:browse'), $CONFIG->wwwroot."pg/guidtool/"), // menu_item(elgg_echo('guidtool:import'), $CONFIG->wwwroot."pg/guidtool/import/"), ),'guidtool'); - } + }*/ // Register a page handler, so we can have nice URLs register_page_handler('guidtool','guidtool_page_handler'); @@ -40,7 +40,7 @@ { global $CONFIG; - if (get_context()=='guidtool') + if ((isadminloggedin()) && (get_context()=='admin')) { add_submenu_item(elgg_echo('guidtool:browse'), $CONFIG->wwwroot."pg/guidtool/"); add_submenu_item(elgg_echo('guidtool:import'), $CONFIG->wwwroot."pg/guidtool/import/"); @@ -61,11 +61,14 @@ switch ($page[0]) { case 'view' : - case 'export': - if ((isset($page[1]) && (!empty($page[1])))) { add_submenu_item('GUID:'.$page[1], $CONFIG->url . "pg/guidtool/view/{$page[1]}/"); add_submenu_item(elgg_echo('guidbrowser:export'), $CONFIG->url . "pg/guidtool/export/{$page[1]}/"); + } + + case 'export': + + if ((isset($page[1]) && (!empty($page[1])))) { set_input('entity_guid', $page[1]); if ($page[0] == 'view') |