Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

avatar_selection_edit_delete_form_submit

Definition

avatar_selection_edit_delete_form_submit($form, &$form_state)
contributions/avatar_selection/avatar_selection.module, line 1055

Description

Submit the image list form in the Avatar Selection - 'Manage Avatars' page.

Function called when the Delete button is pressed, and deletes the selected avatar(s).

Parameters

$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.

Code

<?php
function avatar_selection_edit_delete_form_submit($form, &$form_state) {
  $image = $form_state['values']['select_avatar'];
  avatar_selection_image_delete($image);
}
?>