public static function DateiCalParse::extract_rrule_string in Date 8
Extract the RRULE from a multiline entry.
1 call to DateiCalParse::extract_rrule_string()
- date_repeat_build_dates in date_repeat_field/
date_repeat_field.module - Helper function to build repeating dates from an $entity field.
File
- date_api/
lib/ Drupal/ date_api/ DateiCalParse.php, line 646 - Parse iCal data.
Class
- DateiCalParse
- Return an array of iCalendar information from an iCalendar file.
Namespace
Drupal\date_apiCode
public static function extract_rrule_string($rrule) {
$parts = self::split_multiline_entry($rrule);
foreach ($parts as $part) {
if (strstr($part, 'RRULE')) {
$rrule = $part;
}
}
return $rrule;
}