Commit bc7fccb6 authored by Robert Rollins's avatar Robert Rollins

Emergency release of v2.12. Fixes a bizzre syntax error that I didn't notice.

parent 76273fb6
......@@ -11,7 +11,7 @@
* The version number of the current release. This is inserted into the PRODID
* value of the iCal feeds created by Date iCal.
*/
define('DATE_ICAL_VERSION', '2.12-dev');
define('DATE_ICAL_VERSION', '2.12');
/**
* Exception for when the date field for a row in the ical_fields row plugin is blank.
......
......@@ -12,61 +12,64 @@ class DateIcalIcalcreatorParser extends DateIcalFeedsParser {
*
* Includes additional field for the handler for output.
*
* NOTE: The name and description strings would be t()'d, but PHP doesn't allow that:
* http://stackoverflow.com/questions/3960323/why-dont-php-attributes-allow-functions
*
* @see DateIcalFeedsParser::getMappingSources().
* @see DateIcalFeedsParser::getSourceElement().
*/
static protected $sources = array(
'summary' => array(
'name' => t('Summary'),
'description' => t('A short summary, or title, for the calendar component.'),
'name' => 'Summary',
'description' => 'A short summary, or title, for the calendar component.',
'date_ical_parse_handler' => 'formatText',
),
'description' => array(
'name' => t('Description'),
'description' => t('A more complete description of the calendar component than that provided by the "summary" property.'),
'name' => 'Description',
'description' => 'A more complete description of the calendar component than that provided by the "summary" property.',
'date_ical_parse_handler' => 'formatText',
),
'dtstart' => array(
'name' => t('Date start'),
'description' => t('Start time for the feed item.
If also using the "Date end" source, this MUST come before it in the mapping, due to the way iCal feeds are formatted.'),
'name' => 'Date start',
'description' => 'Start time for the feed item.
If also using the "Date end" source, this MUST come before it in the mapping, due to the way iCal feeds are formatted.',
'date_ical_parse_handler' => 'formatDateTime',
),
'dtend' => array(
'name' => t('Date end'),
'description' => t('End time for the feed item.'),
'name' => 'Date end',
'description' => 'End time for the feed item.',
'date_ical_parse_handler' => 'formatDateTime',
),
'rrule' => array(
'name' => t('Repeat rule'),
'description' => ('Describes when and how often this calendar component should repeat.
'name' => 'Repeat rule',
'description' => 'Describes when and how often this calendar component should repeat.
The date field for the target node must be configrred to support repeating dates, using the Date Repeat Field module (a submodule of Date).
When using this source field, it MUST come after Date start (and Date end, if used) in the mapping.'),
When using this source field, it MUST come after Date start (and Date end, if used) in the mapping.',
'date_ical_parse_handler' => 'formatRrule',
),
'uid' => array(
'name' => 'UID',
'description' => t('UID of feed item'),
'description' => 'UID of feed item',
'date_ical_parse_handler' => 'formatText',
),
'url' => array(
'name' => 'URL',
'description' => t('URL for the feed item.'),
'description' => 'URL for the feed item.',
'date_ical_parse_handler' => 'formatText',
),
'location' => array(
'name' => t('Location text'),
'description' => t('Text of the location property of the feed item.'),
'name' => 'Location text',
'description' => 'Text of the location property of the feed item.',
'date_ical_parse_handler' => 'formatText',
),
'location:altrep' => array(
'name' => t('Location alternate representation'),
'description' => t('Additional location information, usually a URL to a page with more info.'),
'name' => 'Location alternate representation',
'description' => 'Additional location information, usually a URL to a page with more info.',
'date_ical_parse_handler' => 'formatParamText',
),
'categories' => array(
'name' => t('Categories'),
'description' => t('Catagories of the feed item.'),
'name' => 'Categories',
'description' => 'Catagories of the feed item.',
'date_ical_parse_handler' => 'formatCategories',
),
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment