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
This commit is contained in:
plegall
2009-06-24 21:42:39 +00:00
parent 90cc8dccf3
commit 91c7200b59
3 changed files with 89 additions and 6 deletions
+12
View File
@@ -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');