diff options
author | plegall <plg@piwigo.org> | 2011-07-14 21:44:14 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-07-14 21:44:14 +0000 |
commit | 043166964297407540ed398c09e770d4f2f8b3b8 (patch) | |
tree | c2ae1313abd01968fed5893cf67a4f98d8161aa8 /ws.php | |
parent | 02e22746344a95e035355b5e8a0255d34148bd92 (diff) |
merge r11745 from branch 2.2 to trunk
feature 2376 added: new method pwg.categories.setRepresentative
git-svn-id: http://piwigo.org/svn/trunk@11746 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | ws.php | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -302,7 +302,17 @@ function ws_addDefaultMethods( $arr ) ), 'Move categories. You can give several category_ids, comma separated. Set parent as 0 to move to gallery root. Only virtual categories can be moved.' ); - + + $service->addMethod( + 'pwg.categories.setRepresentative', + 'ws_categories_setRepresentative', + array( + 'category_id'=>array('default'=>0), + 'image_id'=>array('default'=>0), + ), + 'Set the representative photo for an album. The photo doesn\'t have to belong to the album. POST method only. Administration method only.' + ); + $service->addMethod( 'pwg.tags.getAdminList', 'ws_tags_getAdminList', |