You are here

function _signup_event_autoclose_sql in Signup 6.2

Same name and namespace in other branches
  1. 5.2 includes/event.5x-1.inc \_signup_event_autoclose_sql()
  2. 5.2 includes/event.5x-2.inc \_signup_event_autoclose_sql()
  3. 6 includes/event.6x-2.inc \_signup_event_autoclose_sql()
  4. 7 includes/event.6x-2.inc \_signup_event_autoclose_sql()

Return value

Array of SQL clauses for cron auto-close query builder.

1 call to _signup_event_autoclose_sql()
signup_autoclose_sql in includes/scheduler.inc

File

includes/event.6x-2.inc, line 38

Code

function _signup_event_autoclose_sql($content_type) {
  event_include_files();
  return array(
    'fields' => array(
      event_select(),
      'e.timezone',
    ),
    'joins' => array(
      event_join('s'),
    ),
    'where' => array(
      event_where_utc() . " < '" . gmdate('Y-m-d H:i:s', time() + variable_get('signup_close_early', 1) * 3600) . "'",
    ),
  );
}