Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
avatar_selection_config_form_submit($form, &$form_state)
contributions/avatar_selection/avatar_selection.module, line 932
Submit the settings form in the Avatar Selection administration page.
$form General variable used in drupal, defining the structure & the fields of a form.
&$form_state General reference, used to control the processing of the form.
<?php
function avatar_selection_config_form_submit($form, &$form_state) {
$op = $form_state['values']['op'];
if ($op == t('Update')) {
// Save system variables.
variable_set('avatar_selection_disable_user_upload', $form_state['values']['disable_user_upload']);
variable_set('avatar_selection_force_user_avatar_reg', $form_state['values']['force_set_image_reg']);
variable_set('avatar_selection_force_user_avatar', $form_state['values']['force_set_image']);
variable_set('avatar_selection_avatar_per_page', $form_state['values']['avatar_per_page']);
variable_set('avatar_selection_set_random_default', $form_state['values']['set_random_default']);
variable_set('avatar_selection_distinctive_avatars', $form_state['values']['distinctive_avatars']);
drupal_set_message(t('Configuration has been updated.'));
}
}
?>