From: Tim Otten Date: Mon, 17 Aug 2015 07:09:49 +0000 (-0700) Subject: CRM-16373 - Config - Declare settings for geoAPIKey, geoProvider, mapAPIKey, mapProvider X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3784888fbe84dd640dcb503595d5c2071ff185fe;p=civicrm-core.git CRM-16373 - Config - Declare settings for geoAPIKey, geoProvider, mapAPIKey, mapProvider --- diff --git a/settings/Map.setting.php b/settings/Map.setting.php new file mode 100644 index 0000000000..83a2be2e8e --- /dev/null +++ b/settings/Map.setting.php @@ -0,0 +1,119 @@ + array( + 'add' => '4.7', + 'prefetch' => 1, + 'config_only' => 1, + 'help_text' => NULL, + 'is_domain' => 1, + 'is_contact' => 0, + 'group_name' => 'Map Preferences', + 'group' => 'map', + 'name' => 'geoAPIKey', + 'type' => 'String', + 'quick_form_type' => 'Element', + 'html_type' => 'text', + 'html_attributes' => array( + 'size' => '32', + 'maxlength' => '64', + ), + 'default' => NULL, + 'title' => 'Geo Provider Key', + 'description' => 'Enter the API key or Application ID associated with your geocoding provider (not required for Yahoo).', + ), + 'geoProvider' => array( + 'add' => '4.7', + 'prefetch' => 1, + 'config_only' => 1, + 'help_text' => NULL, + 'is_domain' => 1, + 'is_contact' => 0, + 'group_name' => 'Map Preferences', + 'group' => 'map', + 'name' => 'geoProvider', + 'type' => 'String', + 'quick_form_type' => 'Element', + 'html_type' => 'Select', + 'pseudoconstant' => array( + 'callback' => 'CRM_Core_SelectValues::geoProvider', + ), + 'default' => NULL, + 'title' => 'Geocoding Provider', + 'description' => 'You may choose a different webservice for geocoding. This is required if there is no geo-coding plugin for your selected mapping provider. You can leave the Geocoding fields blank if you are using Google as your mapping provider.', + ), + 'mapAPIKey' => array( + 'add' => '4.7', + 'prefetch' => 1, + 'config_only' => 1, + 'help_text' => NULL, + 'is_domain' => 1, + 'is_contact' => 0, + 'group_name' => 'Map Preferences', + 'group' => 'map', + 'name' => 'mapAPIKey', + 'type' => 'String', + 'quick_form_type' => 'Element', + 'html_type' => 'text', + 'html_attributes' => array( + 'size' => '32', + 'maxlength' => '64', + ), + 'default' => NULL, + 'title' => 'Map Provider Key', + 'description' => 'Enter your API Key or Application ID. An API Key is currently optional for Google Maps API, but may be helpful diagnosing any problems and required for higher volumes of requests. Refer to developers.google.com for the latest information.', + ), + 'mapProvider' => array( + 'add' => '4.7', + 'prefetch' => 1, + 'config_only' => 1, + 'help_text' => NULL, + 'is_domain' => 1, + 'is_contact' => 0, + 'group_name' => 'Map Preferences', + 'group' => 'map', + 'name' => 'mapProvider', + 'type' => 'String', + 'quick_form_type' => 'Element', + 'html_type' => 'Select ', + 'pseudoconstant' => array( + 'callback' => 'CRM_Core_SelectValues::mapProvider', + ), + 'default' => NULL, + 'title' => 'Mapping Provider', + 'description' => 'Choose the mapping provider that has the best coverage for the majority of your contact addresses.', + ), +);