protected function ParserIcalDateTestCase::getFormFieldsNames in iCal feed parser 7.2
Override parent::getFormFieldsNames().
File
- tests/
parser_ical_date.test, line 239 - Test case for CCK ical date field text mapper.
Class
- ParserIcalDateTestCase
- Class for testing Feeds <em>content</em> mapper.
Code
protected function getFormFieldsNames($field_name, $index) {
if (substr($field_name, 0, 5) == 'pidt_') {
list($delta, $value) = $index;
if ($value == 'timezone') {
return array(
"field_{$field_name}[und][{$delta}][timezone][timezone]",
);
}
else {
return array(
"field_{$field_name}[und][{$delta}][{$value}][date]",
);
}
}
else {
return parent::getFormFieldsNames($field_name, $index);
}
}