aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-07-14 21:43:51 +0000
committerplegall <plg@piwigo.org>2011-07-14 21:43:51 +0000
commitb5e2ecd0dbdc83350a1384c9d5ec39e7d488dc73 (patch)
treecfd25375a54c0349f2551d3b299c104c591f0d31 /ws.php
parent79b1ec578df9c6adfece16818eb34405c8231246 (diff)
feature 2376 added: new method pwg.categories.setRepresentative
git-svn-id: http://piwigo.org/svn/branches/2.2@11745 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/ws.php b/ws.php
index e8bbb2590..3e666ee80 100644
--- a/ws.php
+++ b/ws.php
@@ -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',