aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-06-24 21:42:39 +0000
committerplegall <plg@piwigo.org>2009-06-24 21:42:39 +0000
commit91c7200b59367be519aad81e3d1724fd3bdc1c0d (patch)
tree35a34f394b6c417d46d7647c702c5bcd83c3bfa0 /ws.php
parent90cc8dccf3140aee43c3bf1a9af77b90a6ff7cbc (diff)
feature 1033 added: new API method pwg.categories.setInfo makes possible to
change the name and comment of a given category. git-svn-id: http://piwigo.org/svn/branches/2.0@3453 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 6c4c9a451..e2e128f1b 100644
--- a/ws.php
+++ b/ws.php
@@ -270,6 +270,18 @@ function ws_addDefaultMethods( $arr )
'POST method only. Admin only
<br/><b>categories</b> is a string list "category_id[,rank];category_id[,rank]" The rank is optional and is equivalent to "auto" if not given.'
);
+
+ $service->addMethod(
+ 'pwg.categories.setInfo',
+ 'ws_categories_setInfo',
+ array(
+ 'category_id' => array(),
+
+ 'name' => array('default' => null),
+ 'comment' => array('default' => null),
+ ),
+ 'POST method only.'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');