aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index f2faf0d10..8f49ea1fa 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -293,8 +293,10 @@ function delete_object_entity($guid) {
* @param int $offset Offset.
* @param string $order_by The order.
* @param boolean $count Whether to return the count of results or just the results.
+ * @deprecated 1.7
*/
function search_for_object($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
+ elgg_log('search_for_object was deprecated in 1.7.', 'WARNING');
global $CONFIG;
$criteria = sanitise_string($criteria);
@@ -355,9 +357,12 @@ function objects_test($hook, $type, $value, $params) {
/**
* Returns a formatted list of objects suitable for injecting into search.
+ * @deprecated 1.7
*
*/
function search_list_objects_by_name($hook, $user, $returnvalue, $tag) {
+ elgg_log('search_list_objects_by_name was deprecated in 1.7.', 'WARNING');
+
// Change this to set the number of users that display on the search page
$threshold = 4;
@@ -379,4 +384,4 @@ function search_list_objects_by_name($hook, $user, $returnvalue, $tag) {
}
register_elgg_event_handler('init', 'system', 'objects_init', 0);
-register_plugin_hook('unit_test', 'system', 'objects_test'); \ No newline at end of file
+register_plugin_hook('unit_test', 'system', 'objects_test');