From 6df515a54ff63812076dfbf8dc6514fa9416b08a Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 24 Sep 2008 20:25:39 +0000 Subject: 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 --- ws.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 6aa7b3f64..5fdccff3a 100644 --- a/ws.php +++ b/ws.php @@ -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'); -- cgit v1.2.3