]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4709. Removed documentation for unused annotation_id(s) in egef_annotations().
authorBrett Profitt <brett.profitt@gmail.com>
Mon, 17 Dec 2012 19:36:08 +0000 (14:36 -0500)
committerBrett Profitt <brett.profitt@gmail.com>
Mon, 17 Dec 2012 19:36:08 +0000 (14:36 -0500)
engine/lib/annotations.php

index 2036ccd612669258a3abb336866a2fa90b3177c1..3b9f84703004309fb53293bf9abd7bd71917c6f2 100644 (file)
@@ -316,8 +316,6 @@ function elgg_list_annotations($options) {
  *
  *  annotation_owner_guids => NULL|ARR guids for annotaiton owners
  *
- *  annotation_ids => NULL|ARR Annotation IDs
- *
  * @return mixed If count, int. If not count, array. false on errors.
  * @since 1.7.0
  */
@@ -336,8 +334,6 @@ function elgg_get_entities_from_annotations(array $options = array()) {
 
                'annotation_owner_guids'                                =>      ELGG_ENTITIES_ANY_VALUE,
 
-               'annotation_ids'                                                =>      ELGG_ENTITIES_ANY_VALUE,
-
                'order_by'                                                              =>      'maxtime desc',
                'group_by'                                                              =>      'a.entity_guid'
        );
@@ -345,12 +341,13 @@ function elgg_get_entities_from_annotations(array $options = array()) {
        $options = array_merge($defaults, $options);
 
        $singulars = array('annotation_name', 'annotation_value',
-       'annotation_name_value_pair', 'annotation_owner_guid', 'annotation_id');
+       'annotation_name_value_pair', 'annotation_owner_guid');
 
        $options = elgg_normalise_plural_options_array($options, $singulars);
+       $options = elgg_entities_get_metastrings_options('annotation', $options);
 
-       if (!$options = elgg_entities_get_metastrings_options('annotation', $options)) {
-               return FALSE;
+       if (!$options) {
+               return false;
        }
 
        // special sorting for annotations