diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-26 19:55:12 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-26 19:55:12 +0000 |
commit | 2bb8ec9e27b7630fcd51f731480021d19cc0e011 (patch) | |
tree | 77f91e7b19f35c8d1ef1c455efc92cd7f96420d6 /engine | |
parent | 9d007274adb462063fe59a679b7135b98d97b2b2 (diff) | |
download | elgg-2bb8ec9e27b7630fcd51f731480021d19cc0e011.tar.gz elgg-2bb8ec9e27b7630fcd51f731480021d19cc0e011.tar.bz2 |
Refs #3248 deprecates remove_submenu_item()
git-svn-id: http://code.elgg.org/elgg/trunk@8855 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/deprecated-1.8.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engine/lib/deprecated-1.8.php b/engine/lib/deprecated-1.8.php index 2e97eb81d..dc219ac76 100644 --- a/engine/lib/deprecated-1.8.php +++ b/engine/lib/deprecated-1.8.php @@ -1238,6 +1238,23 @@ function add_submenu_item($label, $link, $group = 'default', $onclick = false, $ } /** + * Remove an item from submenu by label + * + * @deprecated 1.8 + * @see elgg_unregister_menu_item() + * + * @param string $label The item label + * @param string $group The submenu group (default "a") + * @return bool whether the item was removed or not + * @since 1.7.8 + */ +function remove_submenu_item($label, $group = 'a') { + elgg_deprecated_notice('remove_submenu_item was deprecated by elgg_unregister_menu_item', 1.8); + + return elgg_unregister_menu_item('page', $label); +} + +/** * Use elgg_view_menu(). Set $menu_name to 'owner_block'. * * @see elgg_view_menu() |