You are here

function phone_field_info in Phone 6

Same name and namespace in other branches
  1. 5 phone.module \phone_field_info()
  2. 7.2 phone.module \phone_field_info()
  3. 7 phone.module \phone_field_info()

Implementation of hook_field_info().

Here we indicate that the content module will use its default handling for the view of this field.

Callbacks can be omitted if default handing is used. They're included here just so this module can be used as an example for custom modules that might do things differently.

If your module will provide its own Views tables or arguments, change CONTENT_CALLBACK_DEFAULT to CONTENT_CALLBACK_CUSTOM.

IMPORTANT! - field and widget names will be truncated to 32 characters in the database and in internal arrays, like content_fields().

File

./phone.module, line 28
Defines phone number fields for CCK. Provide some verifications on the phone numbers

Code

function phone_field_info() {
  return array(
    'fr_phone' => array(
      'label' => t('Phone Numbers - France'),
    ),
    'be_phone' => array(
      'label' => t('Phone Numbers - Belgium'),
    ),
    'it_phone' => array(
      'label' => t('Phone Numbers - Italy'),
    ),
    'el_phone' => array(
      'label' => t('Phone Numbers - Greece'),
    ),
    'ch_phone' => array(
      'label' => t('Phone Numbers - Switzerland'),
    ),
    'ca_phone' => array(
      'label' => t('Phone Numbers - US & Canada'),
    ),
    'cr_phone' => array(
      'label' => t('Phone Numbers - Costa Rica'),
    ),
    'pa_phone' => array(
      'label' => t('Phone Numbers - Panama'),
    ),
    'gb_phone' => array(
      'label' => t('Phone Numbers - Great Britain - United Kingdom'),
    ),
    'ru_phone' => array(
      'label' => t('Phone Numbers - Russia'),
    ),
    'ua_phone' => array(
      'label' => t('Phone Numbers - Ukraine'),
    ),
    'es_phone' => array(
      'label' => t('Phone Numbers - Spain'),
    ),
    'au_phone' => array(
      'label' => t('Phone Numbers - Australia'),
    ),
    'cs_phone' => array(
      'label' => t('Phone Numbers - Czech Republic'),
    ),
    'hu_phone' => array(
      'label' => t('Phone Numbers - Hungary'),
    ),
    'pl_phone' => array(
      'label' => t('Phone Numbers - Poland - mobiles only'),
    ),
    'nl_phone' => array(
      'label' => t('Phone Numbers - Netherland'),
    ),
    'se_phone' => array(
      'label' => t('Phone Numbers - Sweden'),
    ),
    'za_phone' => array(
      'label' => t('Phone Numbers - South Africa'),
    ),
    'il_phone' => array(
      'label' => t('Phone Numbers - Israel'),
    ),
    'nz_phone' => array(
      'label' => t('Phone Numbers - New Zealand'),
    ),
    'br_phone' => array(
      'label' => t('Phone Numbers - Brazil'),
    ),
    'cl_phone' => array(
      'label' => t('Phone Numbers - Chile'),
    ),
    'cn_phone' => array(
      'label' => t('Phone Numbers - China'),
    ),
    'hk_phone' => array(
      'label' => t('Phone Numbers - Hong-Kong'),
    ),
    'mo_phone' => array(
      'label' => t('Phone Numbers - Macao'),
    ),
    'ph_phone' => array(
      'label' => t('Phone Numbers - The Philippines'),
    ),
    'sg_phone' => array(
      'label' => t('Phone Numbers - Singapore'),
    ),
    'jo_phone' => array(
      'label' => t('Phone Numbers - Jordan'),
    ),
    'eg_phone' => array(
      'label' => t('Phone Numbers - Egypt'),
    ),
    'pk_phone' => array(
      'label' => t('Phone Numbers - Pakistan'),
    ),
    'int_phone' => array(
      'label' => t('Phone Numbers - International Phone Numbers per E.123'),
    ),
  );
}