function telephone_field_formatter_info_alter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/telephone/telephone.module \telephone_field_formatter_info_alter()
- 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';
}