Same name and namespace in other branches
  1. 8.9.x core/modules/telephone/telephone.module \telephone_field_formatter_info_alter()
  2. 9 core/modules/telephone/telephone.module \telephone_field_formatter_info_alter()

Implements hook_field_formatter_info_alter().

File

core/modules/telephone/telephone.module, line 35
Defines a simple telephone number field type.

Code

function telephone_field_formatter_info_alter(&$info) {
  $info['string']['field_types'][] = 'telephone';
}