diff options
author | plegall <plg@piwigo.org> | 2009-06-24 23:01:35 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2009-06-24 23:01:35 +0000 |
commit | 9b16d67c225eac910104f3a9e197c28f3fd08785 (patch) | |
tree | a1d5d6937fedeaf647015824eec4bf0db510084d /ws.php | |
parent | ed7f7a574eeb9b921d4b85c6e8607faac4971a47 (diff) |
merge r3453 from branch 2.0 to trunk
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/trunk@3454 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r-- | ws.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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'); |