public function ParserIcalFeedsParser::getMappingSources in iCal feed parser 6.2
Same name and namespace in other branches
- 7 includes/ParserIcalFeedsParser.inc \ParserIcalFeedsParser::getMappingSources()
Return mapping sources.
At a future point, we could expose data type information here, storage systems like Data module could use this information to store parsed data automatically in fields with a correct field type.
Overrides FeedsParser::getMappingSources
File
- includes/
ParserIcalFeedsParser.inc, line 127
Class
- ParserIcalFeedsParser
- Class definition for iCal date module Parser.
Code
public function getMappingSources() {
return array(
'title' => array(
'name' => t('Title'),
'description' => t('Title of the feed item.'),
),
'description' => array(
'name' => t('Description'),
'description' => t('Description of the feed item.'),
),
// 'author' => t('Author'), // not implemented
'timestamp' => array(
'name' => t('Published date'),
'description' => t('Published date as UNIX time UTC of the feed item.'),
),
'url' => array(
'name' => t('Item URL (link)'),
'description' => t('URL of the feed item.'),
),
'guid' => array(
'name' => t('Item GUID'),
'description' => t('Global Unique Identifier of the feed item.'),
),
'tags' => array(
'name' => t('Categories'),
'description' => t('An array of categories that have been assigned to the feed item.'),
),
'ical_date' => array(
'name' => t('iCal Date'),
'description' => t('iCal date associated with item as an array.'),
),
'ical_location' => array(
'name' => t('iCal location string'),
'description' => t('The location string associated with an item.'),
),
) + parent::getMappingSources();
}