You are here

function flag_actions_delete_form_submit in Flag 7.3

Same name and namespace in other branches
  1. 5 flag_actions.module \flag_actions_delete_form_submit()
  2. 6.2 flag_actions.module \flag_actions_delete_form_submit()
  3. 6 flag_actions.module \flag_actions_delete_form_submit()
  4. 7.2 flag_actions.module \flag_actions_delete_form_submit()

File

./flag_actions.module, line 650
Actions support for the Flag module.

Code

function flag_actions_delete_form_submit(&$form, &$form_state) {
  flag_actions_delete_action($form_state['values']['action']->aid);
  drupal_set_message(t('The "@action" action for the @title flag has been deleted.', array(
    '@action' => $form_state['values']['action']->label,
    '@title' => $form_state['values']['flag']
      ->get_title(),
  )));
  $form_state['redirect'] = FLAG_ADMIN_PATH . '/actions';
}