diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-07 19:53:25 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-07 19:53:25 +0000 |
commit | 1dbc7da3345384f323d16920682b549f14871409 (patch) | |
tree | ef63d2aa2e2ab9641b3eda555fe0f398a3df0f53 | |
parent | eac45f9416be1b6caabb7ef00f78cb93234021a0 (diff) | |
download | elgg-1dbc7da3345384f323d16920682b549f14871409.tar.gz elgg-1dbc7da3345384f323d16920682b549f14871409.tar.bz2 |
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
-rw-r--r-- | engine/lib/entities.php | 6 |
1 files 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); |