Changeset 25474 for trunk/ws.php


Ignore:
Timestamp:
Nov 13, 2013, 1:58:21 PM (10 years ago)
Author:
plg
Message:

feature 2976: ability to set group association with pwg.users.setInfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r25472 r25474  
    885885        'language' =>         array('flags'=>WS_PARAM_OPTIONAL),
    886886        'theme' =>            array('flags'=>WS_PARAM_OPTIONAL),
     887        'group_id' => array('flags'=>WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY, 'type'=>WS_TYPE_INT),
    887888        // bellow are parameters removed in a future version
    888889        'nb_image_page' =>    array('flags'=>WS_PARAM_OPTIONAL,
     
    900901        ),
    901902      'Updates a user. Leave a field blank to keep the current value.
    902 <br>"username", "password" and "email" are ignored if "user_id" is an array.',
     903<br>"username", "password" and "email" are ignored if "user_id" is an array.
     904<br>set "group_id" to -1 if you want to dissociate users from all groups',
    903905      $ws_functions_root . 'pwg.users.php',
    904906      array('admin_only'=>true, 'post_only'=>true)
Note: See TracChangeset for help on using the changeset viewer.