You are here

function date_ical_parse_exceptions in Date 5

Same name and namespace in other branches
  1. 5.2 date_api_ical.inc \date_ical_parse_exceptions()
  2. 6.2 date_api_ical.inc \date_ical_parse_exceptions()
  3. 6 date_api_ical.inc \date_ical_parse_exceptions()
  4. 7.3 date_api/date_api_ical.inc \date_ical_parse_exceptions()
  5. 7 date_api/date_api_ical.inc \date_ical_parse_exceptions()
  6. 7.2 date_api/date_api_ical.inc \date_ical_parse_exceptions()

Parse exception dates (can be multiple values).

Return value

array an array of date value arrays.

1 call to date_ical_parse_exceptions()
date_ical_import in ./date_api_ical.inc
Return an array of iCalendar information from an iCalendar file.

File

./date_api_ical.inc, line 420
Parse iCal imports and create iCal exports. This file must be included when these functions are needed.

Code

function date_ical_parse_exceptions($field, $data) {
  $items = array(
    'DATA' => $data,
  );
  $ex_dates = explode(',', $data);
  foreach ($ex_dates as $ex_date) {
    $items[] = date_ical_parse_date('', $ex_date);
  }
  return $items;
}