diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-14 02:41:53 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-14 02:41:53 +0000 |
commit | 422434216351c84e868b2c91e8bf0059446b89ed (patch) | |
tree | f353ef93440ca2827327c9147672bff779a3eb24 /engine/lib/metastrings.php | |
parent | 82f7909dd08ebfea881d71fd9f2fb1d6ab798932 (diff) | |
download | elgg-422434216351c84e868b2c91e8bf0059446b89ed.tar.gz elgg-422434216351c84e868b2c91e8bf0059446b89ed.tar.bz2 |
More fixes to annotations/metadata changes. Now all function support getting via a metastring id.
git-svn-id: http://code.elgg.org/elgg/trunk@8221 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metastrings.php')
-rw-r--r-- | engine/lib/metastrings.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php index 3367b433f..6376ac09b 100644 --- a/engine/lib/metastrings.php +++ b/engine/lib/metastrings.php @@ -215,6 +215,8 @@ function delete_orphaned_metastrings() { * * metastring_values => NULL|ARR metastring values * + * metastring_ids => NULL|ARR metastring ids + * * metastring_case_sensitive => BOOL Overall Case sensitive * * metastring_owner_guids => NULL|ARR guids for metadata owners @@ -593,11 +595,12 @@ function elgg_normalize_metastrings_options(array $options = array()) { 'owner_guids' => 'metastring_owner_guids', 'created_time_lower' => 'metastring_created_time_lower', 'created_time_upper' => 'metastring_created_time_upper', - 'calculation' => 'metastring_calculation' + 'calculation' => 'metastring_calculation', + 'ids' => 'metastring_ids' ); foreach ($prefixes as $prefix) { - $singulars = array("{$prefix}name", "{$prefix}value", "{$prefix}owner_guid"); + $singulars = array("{$prefix}name", "{$prefix}value", "{$prefix}owner_guid", "{$prefix}id"); $options = elgg_normalise_plural_options_array($options, $singulars); foreach ($map as $specific => $normalized) { |