You are here

function getdirections_misc_defaults in Get Directions 7.3

Same name and namespace in other branches
  1. 6.2 getdirections.module \getdirections_misc_defaults()
  2. 7.2 getdirections.module \getdirections_misc_defaults()
13 calls to getdirections_misc_defaults()
getdirections_direction in ./getdirections.module
Function to setup the map and form
getdirections_direction_form in ./getdirections.module
Function to setup the form
getdirections_direction_other in ./getdirections.module
Function to setup the map and form
getdirections_fields_field_formatter_settings in modules/getdirections_fields/getdirections_fields.module
getdirections_is_mobile in ./getdirections.module

... See full list

File

./getdirections.module, line 930
Fetches google map directions.

Code

function getdirections_misc_defaults() {
  $defaults = array(
    'keep_title' => 0,
    'show_distance' => 0,
    'trafficinfo' => 0,
    'trafficinfo_state' => 0,
    'bicycleinfo' => 0,
    'bicycleinfo_state' => 0,
    'switchfromto' => 0,
    'show_duration' => 0,
    'panoramio_use' => 0,
    'panoramio_show' => 0,
    'panoramio_state' => 0,
    'transitinfo' => 0,
    'transitinfo_state' => 0,
    'geolocation_enable' => 0,
    'geolocation_option' => 1,
    'geolocation_mobile_check' => 1,
    'weather_use' => 0,
    'weather_show' => 0,
    'weather_state' => 0,
    'weather_temp' => 1,
    'weather_speed' => 1,
    'weather_label' => 0,
    'weather_cloud' => 1,
    'weather_cloud_state' => 0,
    'weather_clickable' => 1,
    'weather_info' => 1,
  );
  $getdirections_misc_defaults = variable_get('getdirections_misc', array());
  $newdefaults = getdirections_adjust_vars($defaults, $getdirections_misc_defaults);
  return $newdefaults;
}