summaryrefslogtreecommitdiff
path: root/doc/sample-insert-sharedfolder_types.php
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sample-insert-sharedfolder_types.php')
-rw-r--r--doc/sample-insert-sharedfolder_types.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/sample-insert-sharedfolder_types.php b/doc/sample-insert-sharedfolder_types.php
index 76dae22..439a586 100644
--- a/doc/sample-insert-sharedfolder_types.php
+++ b/doc/sample-insert-sharedfolder_types.php
@@ -54,7 +54,12 @@
$attributes["fields"]["kolabfoldertype"] = Array('note');
$result = $db->query("INSERT INTO `sharedfolder_types` (`key`, `name`, `description`, `attributes`) " .
- "VALUES ('note','Shared Notes', 'A shared notes folder'," .
+ "VALUES ('note','Shared Notes', 'A shared Notes folder'," .
+ "'" . json_encode($attributes) . "')");
+
+ $attributes["fields"]["kolabfoldertype"] = Array('file');
+ $result = $db->query("INSERT INTO `sharedfolder_types` (`key`, `name`, `description`, `attributes`) " .
+ "VALUES ('file','Shared Files', 'A shared Files folder'," .
"'" . json_encode($attributes) . "')");
$attributes["fields"]["kolabfoldertype"] = Array('mail');