function phonefield_field_info in Phone Field 7
Implements hook_field_info().
File
- ./
phonefield.module, line 50 - Hooks for a module that defines a simple phone number field type.
Code
function phonefield_field_info() {
return array(
'phonefield_field' => array(
'label' => t('Phonefield'),
'description' => t('Store a phone link label and a phone number in the database.'),
'settings' => array(
'linkstate' => 'static',
'linkvalue' => '',
),
'instance_settings' => array(
'linkstate' => 'static',
'linkvalue' => '',
),
'default_widget' => 'phonefield_field',
'default_formatter' => 'phonefield_default',
// Support hook_entity_property_info() from contrib "Entity API".
'property_type' => 'field_item_phonefield',
'property_callbacks' => array(
'phonefield_field_property_info_callback',
),
),
);
}