function flag_actions_delete_form_submit in Flag 6
Same name and namespace in other branches
- 5 flag_actions.module \flag_actions_delete_form_submit()
- 6.2 flag_actions.module \flag_actions_delete_form_submit()
- 7.3 flag_actions.module \flag_actions_delete_form_submit()
- 7.2 flag_actions.module \flag_actions_delete_form_submit()
File
- ./
flag_actions.module, line 536 - 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']->description,
'@title' => $form_state['values']['flag']
->get_title(),
)));
$form_state['redirect'] = 'admin/build/flags/actions';
}