function login_destination_delete_form_submit in Login Destination 7
Submit handler for the confirm delete login destination form.
File
- ./
login_destination.admin.inc, line 570 - Admin page callback file for the Login Destination module.
Code
function login_destination_delete_form_submit($form, &$form_state) {
$rule = $form['login_destination']['#value'];
db_delete('login_destination')
->condition('id', $rule['id'])
->execute();
drupal_set_message(t('The login destination %destination has been deleted.', array(
'%destination' => $rule['destination'],
)));
$form_state['redirect'] = 'admin/config/people/login-destination';
}