You are here

function password_policy_admin_delete in Password Policy 7

Same name and namespace in other branches
  1. 6 password_policy.admin.inc \password_policy_admin_delete()

Confirmation form for the deletion of a password policy.

Deletion takes place in password_policy_admin_delete_submit().

1 string reference to 'password_policy_admin_delete'
password_policy_menu in ./password_policy.module
Implements hook_menu().

File

./password_policy.admin.inc, line 620
Admin page callback file for the Password Policy module.

Code

function password_policy_admin_delete($form, $form_state, $policy) {
  $form['pid'] = array(
    '#type' => 'hidden',
    '#value' => $policy['pid'],
  );
  return confirm_form($form, t('Are you sure you want to delete the policy %name?', array(
    '%name' => $policy['name'],
  )), 'admin/config/people/password_policy/list', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}