aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/deprecated-1.7.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 21:56:55 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 21:56:55 +0000
commit00f085d2da3f7fc260597e9bd7493a9cb99115fc (patch)
tree233450cc8b9768a2e122b07bb6c083a5053d033a /engine/lib/deprecated-1.7.php
parent1196f73263f4050400604467200a71f2e1f0e3cb (diff)
downloadelgg-00f085d2da3f7fc260597e9bd7493a9cb99115fc.tar.gz
elgg-00f085d2da3f7fc260597e9bd7493a9cb99115fc.tar.bz2
Moved all deprecated core functions into the appropriate deprecation fine
git-svn-id: http://code.elgg.org/elgg/trunk@8262 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/deprecated-1.7.php')
-rw-r--r--engine/lib/deprecated-1.7.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/engine/lib/deprecated-1.7.php b/engine/lib/deprecated-1.7.php
index 9bc772f27..7d73fd010 100644
--- a/engine/lib/deprecated-1.7.php
+++ b/engine/lib/deprecated-1.7.php
@@ -1102,3 +1102,27 @@ function get_views($dir, $base) {
elgg_deprecated_notice('get_views() was deprecated by elgg_get_views()!', 1.7);
elgg_get_views($dir, $base);
}
+
+/**
+ * Constructs and returns a register object.
+ *
+ * @param string $register_name The name of the register
+ * @param mixed $register_value The value of the register
+ * @param array $children_array Optionally, an array of children
+ *
+ * @return false|stdClass Depending on success
+ * @deprecated 1.7 Use {@link add_submenu_item()}
+ */
+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;
+ }
+
+ $register = new stdClass;
+ $register->name = $register_name;
+ $register->value = $register_value;
+ $register->children = $children_array;
+
+ return $register;
+} \ No newline at end of file