function avatar_selection_settings_page in Avatar Selection 5
Same name and namespace in other branches
- 5.2 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()
1 string reference to 'avatar_selection_settings_page'
- avatar_selection_menu in ./
avatar_selection.module - Implementation of hook_menu().
File
- ./
avatar_selection.module, line 277
Code
function avatar_selection_settings_page($op = NULL, $aid = NULL) {
switch ($op) {
case 'edit':
if (is_numeric($aid)) {
$output = drupal_get_form('avatar_selection_config_form', $aid);
}
break;
case 'upload':
if (is_numeric($aid)) {
$output = drupal_get_form('avatar_selection_images_form', $aid);
}
break;
case 'list':
if (is_numeric($aid)) {
$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;
}