Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
date_ical
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
drupal.org
date_ical
Commits
bc7fccb6
Commit
bc7fccb6
authored
Sep 11, 2013
by
Robert Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emergency release of v2.12. Fixes a bizzre syntax error that I didn't notice.
parent
76273fb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
21 deletions
+24
-21
date_ical.module
date_ical.module
+1
-1
includes/DateIcalIcalcreatorParser.inc
includes/DateIcalIcalcreatorParser.inc
+23
-20
No files found.
date_ical.module
View file @
bc7fccb6
...
...
@@ -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.
...
...
includes/DateIcalIcalcreatorParser.inc
View file @
bc7fccb6
...
...
@@ -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'
,
),
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment