You are here

function getlocations_fields_data_keys in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_data_keys()
10 calls to getlocations_fields_data_keys()
getlocations_fields_defaults in modules/getlocations_fields/getlocations_fields.module
getlocations_fields_handler_field_data::options_form in modules/getlocations_fields/handlers/getlocations_fields_handler_field_data.inc
Default options form provides the label widget that all fields should have.
getlocations_fields_handler_field_data::render in modules/getlocations_fields/handlers/getlocations_fields_handler_field_data.inc
Render the field.
getlocations_fields_load_location in modules/getlocations_fields/getlocations_fields.module
getlocations_fields_load_locations in modules/getlocations_fields/getlocations_fields.module

... See full list

File

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

Code

function getlocations_fields_data_keys($type = 'dd') {
  if ($type == 'dd') {

    // for dropdowns
    $keys = array(
      'phone' => t('Phone'),
      'mobile' => t('Mobile'),
      'fax' => t('Fax'),
      'sv_heading' => t('Heading'),
      'sv_zoom' => t('Zoom'),
      'sv_pitch' => t('Pitch'),
      'mapzoom' => t('Map zoom'),
      'map_maptype' => t('Map type'),
      'sv_enable' => t('Streetview Enable'),
      'sv_showfirst' => t('Showfirst Enable'),
    );
  }
  elseif ($type == 'd') {

    // default values
    $keys = array(
      'phone' => '',
      'mobile' => '',
      'fax' => '',
      'sv_heading' => 0,
      'sv_zoom' => 1,
      'sv_pitch' => 0,
      'mapzoom' => 12,
      'map_maptype' => 'Map',
      'map_settings_allow' => 0,
      'sv_enable' => 0,
      'sv_showfirst' => 0,
    );
    $keys += getlocations_fields_get_display_settings_defaults();
  }
  return $keys;
}