From 1dbc7da3345384f323d16920682b549f14871409 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 7 Jan 2011 19:53:25 +0000 Subject: Changed callback function option from 'row_callback' to 'callback' for elgg_get_entities(). git-svn-id: http://code.elgg.org/elgg/trunk@7856 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 1660d6e4e..0efc9c364 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -725,7 +725,7 @@ function get_entity($guid) { * * joins => array() Additional joins * - * row_callback => string A callback function to pass each row through + * callback => string A callback function to pass each row through * * @return mixed int if count is true, an array of entity objects, or false on failure * @since 1.7.0 @@ -763,7 +763,7 @@ function elgg_get_entities(array $options = array()) { 'wheres' => array(), 'joins' => array(), - 'row_callback' => 'entity_row_to_elggstar', + 'callback' => 'entity_row_to_elggstar', ); $options = array_merge($defaults, $options); @@ -874,7 +874,7 @@ function elgg_get_entities(array $options = array()) { $query .= " LIMIT $offset, $limit"; } - $dt = get_data($query, $options['row_callback']); + $dt = get_data($query, $options['callback']); return $dt; } else { $total = get_data_row($query); -- cgit v1.2.3