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_edit_update_form_submit($form, &$form_state)
contributions/avatar_selection/avatar_selection.module, line 1032
Submit the image list form in the Avatar Selection - 'Manage Avatars' page.
Function called when the Update button is pressed.
$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_edit_update_form_submit($form, &$form_state) {
$og = '';
$access = implode(', ', array_keys(array_filter($form_state['values']['access'])));
if (module_exists("og")) {
$og = implode(', ', array_keys(array_filter($form_state['values']['og_access'])));
}
$file = $form_state['values']['select_avatar'];
_avatar_selection_save_avatar_info($file, $access, $og);
drupal_set_message(t('Image updated.'));
}
?>