You are here

function mobile_number_field_info in Mobile Number 7

Implements hook_field_info().

File

./mobile_number.module, line 60
mobile_number.module

Code

function mobile_number_field_info() {
  return array(
    'mobile_number' => array(
      'label' => t('Mobile Number'),
      'description' => t('This field stores mobile numbers.'),
      'settings' => array(
        'unique' => MOBILE_NUMBER_UNIQUE_NO,
      ),
      'instance_settings' => array(),
      'default_widget' => 'mobile_number_default',
      'default_formatter' => 'mobile_number_default',
      'property_type' => 'mobile_number',
      'property_callbacks' => array(
        'mobile_number_property_callback',
      ),
    ),
  );
}