You are here

function availability_calendar_get_calendar in Availability Calendars 7.3

Same name and namespace in other branches
  1. 7.5 availability_calendar.inc \availability_calendar_get_calendar()
  2. 7.4 availability_calendar.inc \availability_calendar_get_calendar()

Gets a calendar.

Parameters

int $cid: The id of the calendar to get.

Return value

NULL|array Calendar record.

File

./availability_calendar.inc, line 395
General helper methods for Availability Calendar

Code

function availability_calendar_get_calendar($cid) {
  $calendar = db_select('availability_calendar_calendar')
    ->condition('cid', $cid, '=')
    ->execute()
    ->fetchAssoc();
  return $calendar;
}