]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Changed callback function option from 'row_callback' to 'callback' for elgg_get_entit...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 7 Jan 2011 19:53:25 +0000 (19:53 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 7 Jan 2011 19:53:25 +0000 (19:53 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7856 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/entities.php

index 1660d6e4ed3ccbb6727128734fb37443240136ae..0efc9c364cece2cdb96661632865924e324d767f 100644 (file)
@@ -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);