You are here

function _nat_field_type_resolve in Node Auto Term [NAT] 7

Same name and namespace in other branches
  1. 7.2 nat.admin.inc \_nat_field_type_resolve()

Resolve equivalent field types. @todo This need proper fleshing out.

Parameters

$type: The field type in question.

Return value

Returns an equivalent field type.

1 call to _nat_field_type_resolve()
_nat_field_types_match in ./nat.admin.inc
Check if the node and term field types are compatible.

File

./nat.admin.inc, line 248
NAT module administrative forms.

Code

function _nat_field_type_resolve($type) {
  switch ($type) {
    case 'text_long':
    case 'text_with_summary':
    case 'text':
      return 'text';
    default:
      return $type;
  }
}