function avatar_selection_settings_page in Avatar Selection 5.2
Same name and namespace in other branches
- 5 avatar_selection.module \avatar_selection_settings_page()
- 6 avatar_selection.admin.inc \avatar_selection_settings_page()
- 7 avatar_selection.admin.inc \avatar_selection_settings_page()
Select which form will be shown to the user, according to the permissions.
Parameters
$op: Default NULL; the action the user wants to do after the function checks & the permission.
Return value
Return the structure of the form.
1 string reference to 'avatar_selection_settings_page'
- avatar_selection_menu in ./
avatar_selection.module - Implementation of hook_menu().
File
- ./
avatar_selection.module, line 461 - The Avatar Selection module allows the user to pick an avatar image from a list already loaded by an administrative user, and to the administrator to disable uploading other avatar files by the user.
Code
function avatar_selection_settings_page($op = NULL) {
switch ($op) {
case 'edit':
$output = drupal_get_form('avatar_selection_config_form');
break;
case 'upload':
$output = drupal_get_form('avatar_selection_upload_form');
break;
case 'list':
$output = drupal_get_form('avatar_selection_edit_form');
break;
default:
$form[] = array(
'#type' => 'fieldset',
'#title' => t('Add another'),
);
$output .= drupal_get_form('avatar_selection_config_form');
break;
}
return $output;
}