mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
issue #1640 user preferences
This commit is contained in:
@@ -1209,6 +1209,18 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.users.preferences.set',
|
||||
'ws_users_preferences_set',
|
||||
array(
|
||||
'param' => array(),
|
||||
'value' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
'is_json' => array('default'=>false, 'type'=>WS_TYPE_BOOL),
|
||||
),
|
||||
'Set a user preferences parameter. JSON encode the value (and set is_json to true) if you need a complex data structure.',
|
||||
$ws_functions_root . 'pwg.users.php'
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.users.favorites.add',
|
||||
'ws_users_favorites_add',
|
||||
|
||||
Reference in New Issue
Block a user