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