You are here

function password_policy_delete in Password Policy 5

Confirmation form for the deletion of a password policy. Deletion takes place in password_policy_delete_submit().

1 string reference to 'password_policy_delete'
password_policy_menu in ./password_policy.module
Implementation of hook_menu().

File

./password_policy.module, line 281

Code

function password_policy_delete() {
  $pid = arg(4);
  if (!$pid) {
    drupal_not_found();
  }
  $policy = password_policy_load_policy_by_id($pid);
  if ($policy) {
    return drupal_get_form('password_policy_delete_confirm', $pid, $policy);
  }
  else {
    drupal_not_found();
  }
}