public function NodeRegistrationNodeSettings::min_registration_time_passed in Node registration 7
Whether the minimum registration time has passed.
File
- includes/
node_registration.node_settings.inc, line 190 - Node settings class.
Class
- NodeRegistrationNodeSettings
- Node settings class.
Code
public function min_registration_time_passed(&$reason = NULL) {
if ($min_registration_time = $this
->min_registration_time($origin)) {
if ($min_registration_time > REQUEST_TIME) {
$reason = 'future: ' . $origin;
return FALSE;
}
}
$reason = '';
return TRUE;
}