You are here

protected function ParserIcalDateTestCase::getFormFieldsValues in iCal feed parser 7.2

Override parent::getFormFieldsValues().

Actually probably not needed, but left to check before other tests are sorted.

File

tests/parser_ical_date.test, line 259
Test case for CCK ical date field text mapper.

Class

ParserIcalDateTestCase
Class for testing Feeds <em>content</em> mapper.

Code

protected function getFormFieldsValues($field_name, $value) {
  if (substr($field_name, 0, 5) == 'pidt_') {
    if (!is_array($value)) {
      $value = array(
        'date' => $value,
      );
    }
    $values = array(
      $value['date'],
    );
    $values[] = isset($value['timezone']) ? $value['timezone'] : '';

    // @todo
    return $values;
  }
  else {
    return parent::getFormFieldsValues($field_name, $value);
  }
}