You are here

public static function PasswordPolicy::policy in Password Policy 7.2

Retrieves policy by name.

Parameters

string $name: Policy name.

Return value

PasswordPolicy Policy.

File

includes/PasswordPolicy.inc, line 248
Contains PasswordPolicy.

Class

PasswordPolicy
Defines a class used for managing Password Policies.

Code

public static function policy($name) {
  ctools_include('export');
  $info = ctools_export_crud_load('password_policy', $name);
  if ($info) {
    return new PasswordPolicy($info);
  }
}