public function NodeRegistrationNodeSettings::reminder_time_passed in Node registration 7
Whether the reminder time for this event has passed.
File
- includes/
node_registration.node_settings.inc, line 263 - Node settings class.
Class
- NodeRegistrationNodeSettings
- Node settings class.
Code
public function reminder_time_passed() {
if ($event_start = $this
->site_utc()) {
$before = $this->send_reminders_before;
$reminder_time = $before ? _node_registration_strtotime($event_start, $before) : FALSE;
// Return a bool if there is a reminder time.
if ($reminder_time) {
return $reminder_time <= REQUEST_TIME;
}
}
// Return NULL if there isn't a reminder time.
}