From e52708ead3414e9d8a4f5b43c7e63e2a1759b11c Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 20:23:28 +0000 Subject: Fixes #340: add_menu() and make_register_object() deprecated. git-svn-id: http://code.elgg.org/elgg/trunk@3894 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index a0087f65a..ce383ed8c 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1393,6 +1393,7 @@ function add_to_register($register_name, $subregister_name, $subregister_value, * @return false|stdClass Depending on success */ function make_register_object($register_name, $register_value, $children_array = array()) { + elgg_deprecated_notice('make_register_object() is deprecated by add_submenu_item()', 1.7); if (empty($register_name) || empty($register_value)) { return false; } @@ -1455,6 +1456,7 @@ function add_menu($menu_name, $menu_url, $menu_children = array(), $context = "" * @return stdClass|false Depending on success */ function menu_item($menu_name, $menu_url) { + elgg_deprecated_notice('menu_item() is deprecated by add_submenu_item', 1.7); return make_register_object($menu_name, $menu_url); } -- cgit v1.2.3