You are here

protected function ParserIcalFeedsTestCase::getFormFieldsNames in iCal feed parser 7

Same name and namespace in other branches
  1. 6.2 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase::getFormFieldsNames()

Return the form field name for a given CCK field. Special handling for date fields.

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);
  }
}