You are here

function password_policy_help in Password Policy 5

Same name and namespace in other branches
  1. 8.3 password_policy.module \password_policy_help()
  2. 6 password_policy.module \password_policy_help()
  3. 7.2 password_policy.module \password_policy_help()
  4. 7 password_policy.module \password_policy_help()

Help text for the password policy module.

File

./password_policy.module, line 6

Code

function password_policy_help($section = '') {
  $output = '';
  switch ($section) {
    case 'admin/user/password_policy':
      $output = '<p>' . t('The password policy module allows you to enforce a specific level of password complexity for the user passwords on the system.') . '</p>';
      if (password_policy_get_policy_count() != 0) {
        $output .= '<p>' . t('Listed below are the currently defined password policies. If no policy is set as the default, then any password will be accepted by the system (the Drupal default).') . '</p><p>' . t('To set a new default password policy, select the policy below and click the ') . '<em>' . t('Set default policy') . '</em>' . t(' button.');
      }
      else {
        $output .= '<p>' . t('No policies are currently defined. To add a new policy, click <a href="@url">add policy</a>.', array(
          "@url" => url('admin/user/password_policy/add'),
        ));
      }
      break;
    case 'admin/user/password_policy/add':
    case 'admin/user/password_policy/edit/' . arg(3):
      $output = '<p>';
      if (arg(2) == 'add') {
        $output .= t('Give a name and descriptive comment to your new password policy. ');
      }
      $output .= t("A specific level of required password complexity can be achieved by adding minimum requirements for the constraints listed below. ") . t("If no minimum requirements are specified for a constraint, then that constraint will be ignored. ") . t("Only the constraints given values will be used.") . '</p><p>' . t("Please note that it is very easy to specify a set of constraints which can NEVER be satisfied (eg. min length = 3, min uppercase = 3, min lowercase = 3).") . t("This module can not determine these situations automatically, so be careful during the definition of your policy.") . '</p>';
      break;
    case 'admin/user/password_policy/list_expired':
      $output = '<p>' . t('List of accounts which passwords have expired.') . '</p>';
  }
  return $output;
}