Prev |  | Next

### 3.6.4. user_list

This hook can be used for reformatting the list of users that is returned by the phorum_api_user_list() function. Reformatting could mean things like changing the sort order or modifying the fields in the user arrays.

Call time:

Each time the phorum_api_user_list() function is called. The core Phorum code calls the function for creating user drop down lists (if those are enabled in the Phorum general settings) for the group moderation interface in the control center and for sending private messages.

Hook input:

An array of user info arrays. Each user info array contains the fields "user_id", "username" and "display_name". The hook function is allowed to update the "username" and "display_name" fields.

Hook output:

The same array as was used for the hook call argument, possibly with some updated fields in it.

Prev | Up | Next
| Home |