You are here

function event_zonelist_by_id in Event 5.2

Returns a single timezone

Parameters

$id timezone id:

1 call to event_zonelist_by_id()
theme_event_nodeapi in ./event.theme
Format an date value for a nodeapi insert

File

./event.module, line 2933

Code

function event_zonelist_by_id($id) {
  static $zones = array();
  if (!isset($zones[$id])) {
    $zone = db_fetch_array(db_query('SELECT * FROM {event_timezones} WHERE timezone = %d', $id));
    $zones[$id] = $zone;
  }
  return $zones[$id];
}