Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1dbc7da3345384f323d16920682b549f14871409 1 parent eac45f9
@brettp brettp authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 engine/lib/entities.php
View
6 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);
Please sign in to comment.
Something went wrong with that request. Please try again.