You are here

function flag_actions_delete_form_submit in Flag 5

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

File

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

Code

function flag_actions_delete_form_submit($form_id, $form_values) {
  flag_actions_delete_action($form_values['action']->aid);
  drupal_set_message(t('The "@action" action for the @title flag has been deleted.', array(
    '@action' => $form_values['action']->description,
    '@title' => $form_values['flag']
      ->get_title(),
  )));
  return 'admin/build/flags/actions';
}