protected function ParserIcalFeedsTestCase::getFormFieldsNames in iCal feed parser 6.2
Same name and namespace in other branches
- 7 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase::getFormFieldsNames()
Return the form field name for a given CCK field. Special handling for date fields.
Overrides FeedsMapperTestCase::getFormFieldsNames
File
- tests/
parser_ical_feeds.test, line 121
Class
- ParserIcalFeedsTestCase
- Class for testing Feeds <em>content</em> mapper.
Code
protected function getFormFieldsNames($field_name, $index) {
if (in_array($field_name, array(
'date',
'datetime',
'datestamp',
'datefield',
'datesite',
))) {
return array(
"field_{$field_name}[{$index}][value][date]",
);
}
else {
return parent::getFormFieldsNames($field_name, $index);
}
}