Permalink
Browse files

Changed callback function option from 'row_callback' to 'callback' fo…

…r elgg_get_entities().

git-svn-id: http://code.elgg.org/elgg/trunk@7856 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information...
1 parent eac45f9 commit 1dbc7da3345384f323d16920682b549f14871409 @brettp brettp committed Jan 7, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 engine/lib/entities.php
View
@@ -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);

0 comments on commit 1dbc7da

Please sign in to comment.