aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 20:23:28 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 20:23:28 +0000
commite52708ead3414e9d8a4f5b43c7e63e2a1759b11c (patch)
tree90fbe7cc006f82ad9b89c9e4d41db88bdff84ec0 /engine/lib/elgglib.php
parent0572a82a9163323088ef93f9703326b94a9dfad4 (diff)
downloadelgg-e52708ead3414e9d8a4f5b43c7e63e2a1759b11c.tar.gz
elgg-e52708ead3414e9d8a4f5b43c7e63e2a1759b11c.tar.bz2
Fixes #340: add_menu() and make_register_object() deprecated.
git-svn-id: http://code.elgg.org/elgg/trunk@3894 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 2 insertions, 0 deletions
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);
}