You are here

function password_policy_expired_unblock_confirm in Password Policy 7

Same name and namespace in other branches
  1. 6 password_policy.module \password_policy_expired_unblock_confirm()

Confirms unblocking the expired account.

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

File

./password_policy.module, line 1132
Allows enforcing restrictions on user passwords by defining policies.

Code

function password_policy_expired_unblock_confirm($form_id, $form, $account) {
  return confirm_form(array(
    'account' => array(
      '#type' => 'value',
      '#value' => $account,
    ),
  ), t('Are you sure you would like to unblock the user %user?', array(
    '%user' => $account->name,
  )), 'admin/people/expired', t('This action cannot be undone.'), t('Unblock user'), t('Cancel'));
}