From 2bb8ec9e27b7630fcd51f731480021d19cc0e011 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Mar 2011 19:55:12 +0000 Subject: Refs #3248 deprecates remove_submenu_item() git-svn-id: http://code.elgg.org/elgg/trunk@8855 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/deprecated-1.8.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'engine/lib') 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 @@ -1237,6 +1237,23 @@ function add_submenu_item($label, $link, $group = 'default', $onclick = false, $ return elgg_register_menu_item('page', $item); } +/** + * 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'. * -- cgit v1.2.3