You are here

function field_test_field_build_modes in SimpleTest 7

Implement hook_field_build_modes().

File

tests/field_test.module, line 165

Code

function field_test_field_build_modes($obj_type) {
  $modes = array();
  if ($obj_type == 'test_entity' || $obj_type == 'test_cacheable_entity') {
    $modes = array(
      'full' => t('Full node'),
      'teaser' => t('Teaser'),
    );
  }
  return $modes;
}