You are here

function _signup_event_node_completed in Signup 5.2

Same name in this branch
  1. 5.2 includes/event.5x-1.inc \_signup_event_node_completed()
  2. 5.2 includes/event.5x-2.inc \_signup_event_node_completed()
Same name and namespace in other branches
  1. 6.2 includes/event.6x-2.inc \_signup_event_node_completed()
  2. 6 includes/event.6x-2.inc \_signup_event_node_completed()
  3. 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-2.inc, line 76
Code required to support version 5.x-2.* of the event module.

Code

function _signup_event_node_completed($node) {
  if (isset($node->event)) {
    $closing_time = gmdate('Y-m-d H:i:s', time() + variable_get('signup_close_early', 1) * 3600);
    if (event_is_later($closing_time, $node->event['start_utc'], 'string')) {
      return TRUE;
    }
  }
  return FALSE;
}