function _signup_event_node_completed in Signup 5.2
Same name in this branch
- 5.2 includes/event.5x-1.inc \_signup_event_node_completed()
- 5.2 includes/event.5x-2.inc \_signup_event_node_completed()
Same name and namespace in other branches
- 6.2 includes/event.6x-2.inc \_signup_event_node_completed()
- 6 includes/event.6x-2.inc \_signup_event_node_completed()
- 7 includes/event.6x-2.inc \_signup_event_node_completed()
Returns TRUE if the given node is event-enabled, and the start time has already passed the "Close x hours before" setting.
1 call to _signup_event_node_completed()
- _signup_node_completed in includes/
scheduler.inc - Determine if the given node has date/time data and if it already started.
File
- includes/
event.5x-1.inc, line 68 - Code required to support version 5.x-1.* of the event module.
Code
function _signup_event_node_completed($node) {
if (isset($node->event_start)) {
$closing_time = $node->event_start - variable_get('signup_close_early', 1) * 3600;
if (time() > $closing_time) {
return TRUE;
}
}
return FALSE;
}