You are here

public function NodeRegistrationNodeSettings::max_registration_time_passed in Node registration 7

Whether the maximum registration time has passed.

File

includes/node_registration.node_settings.inc, line 232
Node settings class.

Class

NodeRegistrationNodeSettings
Node settings class.

Code

public function max_registration_time_passed(&$reason = NULL) {
  if ($max_registration_time = $this
    ->max_registration_time($origin)) {
    if ($max_registration_time < REQUEST_TIME) {
      $reason = 'passed: ' . $origin;
      return TRUE;
    }
  }
  $reason = '';
  return FALSE;
}