1 user.password.inc _user_password_policy_help()

Generates help text for core password constraints on forms.

See also

user_account_form()

File

core/modules/user/user.password.inc, line 33
Password callback file for the user module.

Code

function _user_password_policy_help() {
  $help = array();
  $help[] = t('The password cannot be the same as the username or e-mail address.');
  $help[] = t('The password must be sufficiently long or complex.');
  $variables = array(
    'items' => $help,
    'title' => '',
    'type' => 'ul',
    'attributes' => array(),
  );
  return theme_item_list($variables);
}