You are here

function login_destination_delete_form in Login Destination 7

Form builder for deleting a login destination.

1 string reference to 'login_destination_delete_form'
login_destination_menu in ./login_destination.module
Implements hook_menu().

File

./login_destination.admin.inc, line 558
Admin page callback file for the Login Destination module.

Code

function login_destination_delete_form($form, &$form_state, array $rule) {
  $form['login_destination'] = array(
    '#type' => 'value',
    '#value' => $rule,
  );
  return confirm_form($form, t('Are you sure you want to delete the login destination %destination ?', array(
    '%destination' => $rule['destination'],
  )), 'admin/config/people/login-destination', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}