mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
new: WebService method pwg.categories.add so that pLoader can create a
virtual category. git-svn-id: http://piwigo.org/svn/trunk@2583 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -201,6 +201,16 @@ function ws_addDefaultMethods( $arr )
|
||||
array(),
|
||||
'administration method only'
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.categories.add',
|
||||
'ws_categories_add',
|
||||
array(
|
||||
'name' => array(),
|
||||
'parent' => array('default' => null),
|
||||
),
|
||||
'administration method only'
|
||||
);
|
||||
}
|
||||
|
||||
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');
|
||||
|
||||
Reference in New Issue
Block a user