aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/annotations.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-08 21:52:34 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-08 21:52:34 -0400
commitba4bbf484d33fe24332ff63ac3b063f346a2a74c (patch)
tree5342f33dd095c43e2cc2bb6bcf635dd3d6f00820 /engine/lib/annotations.php
parent9acaf639b57e06178c92b8321012833c4e1fdb80 (diff)
downloadelgg-ba4bbf484d33fe24332ff63ac3b063f346a2a74c.tar.gz
elgg-ba4bbf484d33fe24332ff63ac3b063f346a2a74c.tar.bz2
Fixes #3942 fixed all the warnings and notices in the unit tests
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r--engine/lib/annotations.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index 814c3555b..c227c5516 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -56,14 +56,14 @@ function elgg_delete_annotation_by_id($id) {
* @param int $entity_guid Entity Guid
* @param string $name Name of annotation
* @param string $value Value of annotation
- * @param string $value_type Type of value
- * @param int $owner_guid Owner of annotation
+ * @param string $value_type Type of value (default is auto detection)
+ * @param int $owner_guid Owner of annotation (default is logged in user)
* @param int $access_id Access level of annotation
*
* @return int|bool id on success or false on failure
*/
-function create_annotation($entity_guid, $name, $value, $value_type,
-$owner_guid, $access_id = ACCESS_PRIVATE) {
+function create_annotation($entity_guid, $name, $value, $value_type = '',
+$owner_guid = 0, $access_id = ACCESS_PRIVATE) {
global $CONFIG;
$result = false;