You are here

public function PasswordPolicyConstraint::__construct in Password Policy 7.2

Constructs PasswordPolicyConstraint object.

Parameters

array $info: Ctools plugin info.

object $policy: Database object as returned by ctools_export_crud_load().

Overrides PasswordPolicyItem::__construct

File

includes/PasswordPolicyConstraint.inc, line 24
Contains PasswordPolicyConstraint.

Class

PasswordPolicyConstraint
Class PasswordPolicyConstraint.

Code

public function __construct(array $info, &$policy) {
  if (isset($info['default'])) {
    $info['prime value'] = $info['name'];
    $info['config'] = array(
      $info['name'] => $info['default'],
    );
  }
  parent::__construct($info, $policy);
}