diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-08 02:07:34 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-08 02:07:34 +0000 |
commit | 567591c5f1d3c51d9062c47de6951a1a116c44a9 (patch) | |
tree | 17e39bf29cf39386f74a7ff07ca7429ccb487922 /engine/lib/metadata.php | |
parent | 02e0a58f8907c66a0dbe7241621e5ad0bb264426 (diff) | |
download | elgg-567591c5f1d3c51d9062c47de6951a1a116c44a9.tar.gz elgg-567591c5f1d3c51d9062c47de6951a1a116c44a9.tar.bz2 |
elgg_get_entities_from_metadata() and egef_annotations() support singular -> plural rewrites. (Why didn't I add this originally?!)
git-svn-id: http://code.elgg.org/elgg/trunk@6390 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r-- | engine/lib/metadata.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index d9b310b15..d28999a77 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -581,6 +581,9 @@ function elgg_get_entities_from_metadata(array $options = array()) { $options = array_merge($defaults, $options); + $singulars = array('metadata_name', 'metadata_value', 'metadata_name_value_pair', 'metadata_owner_guid'); + $options = elgg_normalise_plural_options_array($options, $singulars); + if (!$options = elgg_entities_get_metastrings_options('metadata', $options)) { return FALSE; } |