You are here

function getlocations_fields_field_widget_info in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_field_widget_info()

Implements hook_field_widget_info(). Expose Field API widget types.

Return value

An array describing the widget types implemented by the module.

File

modules/getlocations_fields/getlocations_fields.module, line 1116
getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_field_widget_info() {
  $getlocations_fields_defaults = getlocations_fields_defaults();
  return array(
    'getlocations_fields' => array(
      'label' => t('Geocoder'),
      'field types' => array(
        'getlocations_fields',
      ),
      'settings' => array(
        'country' => $getlocations_fields_defaults['country'],
        'use_country_dropdown' => $getlocations_fields_defaults['use_country_dropdown'],
        'province_autocomplete' => $getlocations_fields_defaults['province_autocomplete'],
        'city_autocomplete' => $getlocations_fields_defaults['city_autocomplete'],
        'use_address' => $getlocations_fields_defaults['use_address'],
        'input_address_width' => $getlocations_fields_defaults['input_address_width'],
        'input_name_width' => $getlocations_fields_defaults['input_name_width'],
        'input_street_width' => $getlocations_fields_defaults['input_street_width'],
        'input_additional_width' => $getlocations_fields_defaults['input_additional_width'],
        'input_city_width' => $getlocations_fields_defaults['input_city_width'],
        'input_province_width' => $getlocations_fields_defaults['input_province_width'],
        'input_postal_code_width' => $getlocations_fields_defaults['input_postal_code_width'],
        'input_country_width' => $getlocations_fields_defaults['input_country_width'],
        'input_phone_width' => $getlocations_fields_defaults['input_phone_width'],
        'input_mobile_width' => $getlocations_fields_defaults['input_mobile_width'],
        'input_fax_width' => $getlocations_fields_defaults['input_fax_width'],
        'input_latitude_width' => $getlocations_fields_defaults['input_latitude_width'],
        'input_longitude_width' => $getlocations_fields_defaults['input_longitude_width'],
        'input_name_weight' => $getlocations_fields_defaults['input_name_weight'],
        'input_street_weight' => $getlocations_fields_defaults['input_street_weight'],
        'input_additional_weight' => $getlocations_fields_defaults['input_additional_weight'],
        'input_city_weight' => $getlocations_fields_defaults['input_city_weight'],
        'input_province_weight' => $getlocations_fields_defaults['input_province_weight'],
        'input_postal_code_weight' => $getlocations_fields_defaults['input_postal_code_weight'],
        'input_country_weight' => $getlocations_fields_defaults['input_country_weight'],
        'input_phone_weight' => $getlocations_fields_defaults['input_phone_weight'],
        'input_mobile_weight' => $getlocations_fields_defaults['input_mobile_weight'],
        'input_fax_weight' => $getlocations_fields_defaults['input_fax_weight'],
        'input_latitude_weight' => $getlocations_fields_defaults['input_latitude_weight'],
        'input_longitude_weight' => $getlocations_fields_defaults['input_longitude_weight'],
        'input_name_required' => $getlocations_fields_defaults['input_name_required'],
        'input_street_required' => $getlocations_fields_defaults['input_street_required'],
        'input_additional_required' => $getlocations_fields_defaults['input_additional_required'],
        'input_city_required' => $getlocations_fields_defaults['input_city_required'],
        'input_province_required' => $getlocations_fields_defaults['input_province_required'],
        'input_postal_code_required' => $getlocations_fields_defaults['input_postal_code_required'],
        'input_country_required' => $getlocations_fields_defaults['input_country_required'],
        'input_phone_required' => $getlocations_fields_defaults['input_phone_required'],
        'input_mobile_required' => $getlocations_fields_defaults['input_mobile_required'],
        'input_fax_required' => $getlocations_fields_defaults['input_fax_required'],
        'per_item_marker' => $getlocations_fields_defaults['per_item_marker'],
        'sv_enable' => $getlocations_fields_defaults['sv_enable'],
        'sv_showfirst' => $getlocations_fields_defaults['sv_showfirst'],
      ),
    ),
  );
}