aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-05-10 16:00:08 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-05-10 16:00:08 -0700
commitacd2c9a08b623bda5b372942ce4c55b789b4ce56 (patch)
tree77d1f8bfadc7fe207d31489bb50c4c80c20ba943 /engine/lib/metadata.php
parent0502752eb7ec0a9a61727fbdae226d54671c4fa2 (diff)
downloadelgg-acd2c9a08b623bda5b372942ce4c55b789b4ce56.tar.gz
elgg-acd2c9a08b623bda5b372942ce4c55b789b4ce56.tar.bz2
Documented that elgg_delete_metadata/annotations() returns null for no ops.
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 34a36d86e..973d447f5 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -297,6 +297,8 @@ function elgg_get_metadata(array $options = array()) {
* This requires at least one constraint: metadata_owner_guid(s),
* metadata_name(s), metadata_value(s), or guid(s) must be set.
*
+ * @warning This returns null on no ops.
+ *
* @param array $options An options array. {@see elgg_get_metadata()}
* @return mixed Null if the metadata name is invalid. Bool on success or fail.
* @since 1.8.0
@@ -307,8 +309,7 @@ function elgg_delete_metadata(array $options) {
}
$options['metastring_type'] = 'metadata';
- $result = elgg_batch_metastring_based_objects($options, 'elgg_batch_delete_callback');
- return $result;
+ return elgg_batch_metastring_based_objects($options, 'elgg_batch_delete_callback');
}
/**
@@ -316,6 +317,8 @@ function elgg_delete_metadata(array $options) {
*
* @warning Unlike elgg_get_metadata() this will not accept an empty options array!
*
+ * @warning This returns null on no ops.
+ *
* @param array $options An options array. {@See elgg_get_metadata()}
* @return mixed
* @since 1.8.0
@@ -334,6 +337,8 @@ function elgg_disable_metadata(array $options) {
*
* @warning Unlike elgg_get_metadata() this will not accept an empty options array!
*
+ * @warning This returns null on no ops.
+ *
* @param array $options An options array. {@See elgg_get_metadata()}
* @return mixed
* @since 1.8.0