You are here

function _signup_event_node_completed in Signup 6.2

Same name and namespace in other branches
  1. 5.2 includes/event.5x-1.inc \_signup_event_node_completed()
  2. 5.2 includes/event.5x-2.inc \_signup_event_node_completed()
  3. 6 includes/event.6x-2.inc \_signup_event_node_completed()
  4. 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.6x-2.inc, line 71

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;
}