You are here

public function FeedsMapperFileFieldTestCase::selectFieldWidget in Feeds 6

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

Handle file field widgets.

Overrides FeedsMapperTestCase::selectFieldWidget

File

tests/feeds_mapper_filefield.test, line 82
Test case for Filefield mapper mappers/filefield.inc.

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