User Profile Integration APIs
The glFusion user profile system consists of a set panels, broken down as follows:
Username & Password
Layout & Language
Each panel contains a set of fields that the user may customize for their profile. The following profile APIs allow plugins to hook into these panels and add their own preference settings for the user.
This API call a plugin's plugin_profileedit_<pluginname> function to allow the plugin to add items to the profile panels. This function is called for each fieldset on each panel. The plugin's function should check which panel and fieldset is being passed so they only add items to the areas they want.
string PLG_profileEdit( $uid, $panel, $fieldset )
This would call a plugin's plugin_profileedit_<pluginname> function passing the following arguments:
The userid of the user being edited
The panel name being displayed.
Panel names are:
A panel corresponds to the profile tab. Each panel consists of one or more fieldsets. The fieldset parameter is used to allow a plugin to add new fields to the existing fieldset. The function is also called with an empty fieldset value, which allows the plugin to insert their own complete fieldset on that panel.
The current fieldset being displayed.
Fieldset names are: