You are here

function telephone_field_info in Telephone 7

Implements hook_field_info().

File

./telephone.module, line 11
Defines a simple telephone number field type.

Code

function telephone_field_info() {
  return array(
    'telephone' => array(
      'label' => t('Telephone number'),
      'description' => t('This field stores a telephone number in the database.'),
      'default_widget' => 'telephone_default',
      'default_formatter' => 'telephone_link',
      'property_type' => 'text',
    ),
  );
}