diff options
author | plegall <plg@piwigo.org> | 2015-12-03 16:10:50 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2015-12-03 16:10:50 +0100 |
commit | 5be28962a16ac6a2694d0c0e1c6bff3ef7ec1100 (patch) | |
tree | 33decf311572211a7d535eb751692f3d21d77c26 /ws.php | |
parent | 27389102d1275cdefcaee9c5a4a93297fc797b8c (diff) | |
parent | 2080897f3b87ac1c1653232491c8bba56ede60f7 (diff) |
Merge branch 'feature/377-album-thumbnail'
Diffstat (limited to 'ws.php')
-rw-r--r-- | ws.php | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -570,6 +570,28 @@ function ws_addDefaultMethods( $arr ) $ws_functions_root . 'pwg.categories.php', array('admin_only'=>true, 'post_only'=>true) ); + + $service->addMethod( + 'pwg.categories.deleteRepresentative', + 'ws_categories_deleteRepresentative', + array( + 'category_id' => array('type'=>WS_TYPE_ID), + ), + 'Deletes the album thumbnail. Only possible if $conf[\'allow_random_representative\']', + $ws_functions_root . 'pwg.categories.php', + array('admin_only'=>true, 'post_only'=>true) + ); + + $service->addMethod( + 'pwg.categories.refreshRepresentative', + 'ws_categories_refreshRepresentative', + array( + 'category_id' => array('type'=>WS_TYPE_ID), + ), + 'Find a new album thumbnail.', + $ws_functions_root . 'pwg.categories.php', + array('admin_only'=>true, 'post_only'=>true) + ); $service->addMethod( 'pwg.tags.getAdminList', |