function event_where_site in Event 5.2
Same name in this branch
- 5.2 event_database.mysql.inc \event_where_site()
- 5.2 event_database.mysqli.inc \event_where_site()
- 5.2 event_database.pgsql.inc \event_where_site()
Parameters
$type either 'start' or 'end':
See also
event_where
Related topics
2 calls to event_where_site()
- event_select in ./
event.module - Return SQL string for SELECT statement
- event_where in ./
event.module - Return SQL string for WHERE statement
File
- ./
event_database.mysqli.inc, line 160
Code
function event_where_site($type = 'start') {
switch ($type) {
case 'end':
case 'start':
return str_replace('%d', (int) variable_get('date_default_timezone', 0), "(e.event_{$type} - INTERVAL IF(tz.is_dst, tz.offset_dst, tz.offset) HOUR_SECOND + INTERVAL %d SECOND)");
}
}