You are here

public function PasswordPolicyItem::isActive in Password Policy 7.2

Determines whether item is active.

Return value

bool TRUE if item is active, FALSE otherwise.

File

includes/PasswordPolicyItem.inc, line 91
Contains PasswordPolicyItem.

Class

PasswordPolicyItem
Class PasswordPolicyItem.

Code

public function isActive() {
  if (isset($this->info['prime value'])) {
    return (bool) $this->config[$this->info['prime value']];
  }
  else {
    return TRUE;
  }
}