function flag_actions_delete_form_submit in Flag 7.2
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()
- 6 flag_actions.module \flag_actions_delete_form_submit()
- 7.3 flag_actions.module \flag_actions_delete_form_submit()
File
- ./
flag_actions.module, line 643 - 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';
}