You are here

public function FeedsMapperFileFieldTestCase::selectFieldWidget in Feeds 7

Same name and namespace in other branches
  1. 6 tests/feeds_mapper_filefield.test \FeedsMapperFileFieldTestCase::selectFieldWidget()

Handle file field widgets.

Overrides FeedsMapperTestCase::selectFieldWidget

File

tests/feeds_mapper_filefield.test, line 97

Class

FeedsMapperFileFieldTestCase
Class for testing Feeds FileField mapper.

Code

public function selectFieldWidget($fied_name, $field_type) {
  if ($field_type == 'filefield') {
    return 'filefield_widget';
  }
  else {
    return parent::selectFieldWidget($fied_name, $field_type);
  }
}