mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
Adding a Formats Tab on Edit photo page
* Add 3 new files for the tab creation (php, tpl and js) * Creation of a new API method : pwg.images.formats.remove * Adding translation in en_GB and fr_FR for the formats * Minor change on the head-button css class
This commit is contained in:
@@ -264,6 +264,18 @@ function ws_addDefaultMethods( $arr )
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.formats.delete',
|
||||
'ws_images_formats_delete',
|
||||
array(
|
||||
'format_id' => array('type'=>WS_TYPE_ID, 'default'=>null, 'flags'=>WS_PARAM_ACCEPT_ARRAY),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Remove a format',
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.setRank',
|
||||
|
||||
Reference in New Issue
Block a user