You are here

function event_where in Event 5.2

Return SQL string for WHERE statement

The returned string will make sure your event dates are correctly returned according to the site setting for "event_timezone_display".

Parameters

$type either 'start' or 'end':

Related topics

File

./event.module, line 1202

Code

function event_where($type = 'start') {
  event_include_files();
  switch (variable_get('event_timezone_display', 'event')) {
    case 'user':
      $result = event_where_user($type);
      break;
    case 'site':
      $result = event_where_site($type);
      break;
    case 'event':
      $result = event_where_event($type);
  }
  return $result;
}