aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/ui/submenu.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-10 16:00:52 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-10 16:00:52 +0000
commit37446557462b35b5c6690f7f8f739c4dd861b85b (patch)
treeef72ca9f73bf31583350af4cb174f1a6c0ff3bab /engine/tests/ui/submenu.php
parentf40da8fcaaeb193b155f8e51081bcaef468d9770 (diff)
downloadelgg-37446557462b35b5c6690f7f8f739c4dd861b85b.tar.gz
elgg-37446557462b35b5c6690f7f8f739c4dd861b85b.tar.bz2
Admin area now uses standard submenu tools.
git-svn-id: http://code.elgg.org/elgg/trunk@5992 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests/ui/submenu.php')
-rw-r--r--engine/tests/ui/submenu.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/engine/tests/ui/submenu.php b/engine/tests/ui/submenu.php
index d7a156417..745364890 100644
--- a/engine/tests/ui/submenu.php
+++ b/engine/tests/ui/submenu.php
@@ -20,7 +20,7 @@ $url = "{$CONFIG->url}engine/tests/ui/submenu.php";
$items = array(
array(
'text' => 'Upper level 1',
- 'url' => "$url?upper_level_1",
+ 'href' => "$url?upper_level_1",
'id' => 'ul1'
),
array(
@@ -30,50 +30,50 @@ $items = array(
),
array(
'text' => 'Sub CD',
- 'url' => "$url?sub_cd",
+ 'href' => "$url?sub_cd",
'parent_id' => 'cd'
),
array(
'text' => 'Cup',
- 'url' => "$url?cup",
+ 'href' => "$url?cup",
'id' => 'cup'
),
array(
'text' => 'Phone',
- 'url' => "$url?phone",
+ 'href' => "$url?phone",
'id' => 'phone',
'parent_id' => 'cup'
),
array(
'text' => 'Wallet',
- 'url' => "$url?wallet",
+ 'href' => "$url?wallet",
'id' => 'wallet',
'parent_id' => 'phone'
),
array(
'text' => 'Upper level',
- 'url' => "$url?upper_level",
+ 'href' => "$url?upper_level",
'id' => 'ul'
),
array(
'text' => 'Sub Upper level',
- 'url' => "$url?sub_upper_level",
+ 'href' => "$url?sub_upper_level",
'parent_id' => 'ul'
),
array(
'text' => 'Root',
- 'url' => $url,
+ 'href' => $url,
),
array(
'text' => 'I am an orphan',
- 'url' => 'http://google.com',
+ 'href' => 'http://google.com',
'parent_id' => 'missing_parent'
),
array(
'text' => 'JS Test',
- 'url' => 'http://elgg.org',
+ 'href' => 'http://elgg.org',
'vars' => array('js' => 'onclick="alert(\'Link to \' + $(this).attr(\'href\') + \'!\'); return false;"')
)
);
@@ -86,10 +86,10 @@ add_submenu_item('Old Onclick Test', 'http://elgg.com', NULL, TRUE);
add_submenu_item('Old Selected Test', 'http://elgg.com', NULL, '', TRUE);
-elgg_add_submenu_item(array('text' => 'Not Main Test', 'url' => "$url?not_main_test"), 'not_main', 'new_menu');
-elgg_add_submenu_item(array('text' => 'Not Main C Test', 'url' => "$url?not_main_c_test"), 'not_main', 'new_menu');
+elgg_add_submenu_item(array('text' => 'Not Main Test', 'href' => "$url?not_main_test"), 'not_main', 'new_menu');
+elgg_add_submenu_item(array('text' => 'Not Main C Test', 'href' => "$url?not_main_c_test"), 'not_main', 'new_menu');
-elgg_add_submenu_item(array('text' => 'All test', 'url' => "$url?all"), 'all');
+elgg_add_submenu_item(array('text' => 'All test', 'href' => "$url?all"), 'all');
//set_context('not_main');