function _signup_event_autoclose_sql in Signup 7
Same name and namespace in other branches
- 5.2 includes/event.5x-1.inc \_signup_event_autoclose_sql()
- 5.2 includes/event.5x-2.inc \_signup_event_autoclose_sql()
- 6.2 includes/event.6x-2.inc \_signup_event_autoclose_sql()
- 6 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 - @todo Please document this function.
File
- includes/
event.6x-2.inc, line 36
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', REQUEST_TIME + variable_get('signup_close_early', 1) * 3600) . "'",
),
);
}