protected function FeedsMapperNodeSummaryTestCase::getFormFieldsNames in Feeds 7.2
Overrides FeedsMapperTestCase::getFormFieldsNames().
Returns different form field names for:
- body This field doesn't have the "field_" prefix.
- summary Which is part of the body field.
- format The format of the body field.
Overrides FeedsMapperTestCase::getFormFieldsNames
File
- tests/
feeds_mapper_summary.test, line 172 - Contains FeedsMapperNodeSummaryTestCase.
Class
- FeedsMapperNodeSummaryTestCase
- Test case for mapping to node summary.
Code
protected function getFormFieldsNames($field_name, $index) {
switch ($field_name) {
case 'body':
return array(
"body[und][{$index}][value]",
);
case 'summary':
return array(
"body[und][{$index}][summary]",
);
case 'format':
return array(
"body[und][{$index}][format]",
);
}
return parent::getFormFieldsNames($field_name, $index);
}