You are here

function telephone_field_formatter_info_alter in Drupal 10

Same name and namespace in other branches
  1. 8 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 34
Defines a simple telephone number field type.

Code

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