You are here

function pollim_delete_form_submit in Poll Improved 7

Submit callback for pollim_delete_form

1 string reference to 'pollim_delete_form_submit'
pollim_delete_form in ./pollim.admin.inc
Form callback: confirmation form for deleting a pollim.

File

./pollim.admin.inc, line 290
Pollim editing UI.

Code

function pollim_delete_form_submit($form, &$form_state) {
  $pollim = $form_state['pollim'];
  pollim_delete($pollim);
  drupal_set_message(t('The poll %name has been deleted.', array(
    '%name' => $pollim->name,
  )));
  watchdog('pollim', 'Deleted pollim %name.', array(
    '%name' => $pollim->name,
  ));
  $form_state['redirect'] = 'admin/content/pollims';
}