You are here

function _getlocations_location_taxonomize_variables in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_location_taxonomize/getlocations_location_taxonomize.inc \_getlocations_location_taxonomize_variables()

Keeps a list of all the variables maintained by this module, with their default values.

2 calls to _getlocations_location_taxonomize_variables()
_getlocations_location_taxonomize_del_variables in modules/getlocations_location_taxonomize/getlocations_location_taxonomize.inc
Deletes all variables set by this module
_getlocations_location_taxonomize_set_defaults in modules/getlocations_location_taxonomize/getlocations_location_taxonomize.inc
Sets all this module's variables to their default values

File

modules/getlocations_location_taxonomize/getlocations_location_taxonomize.inc, line 19
getlocations_location_taxonomize.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function _getlocations_location_taxonomize_variables() {
  $fields = getlocations_location_taxonomize_get_fields();

  // set field defaults
  foreach ($fields as $key => $value) {
    if ($key != 'country' && $key != 'province' && $key != 'city') {
      $fields[$key] = 0;
    }
  }
  return array(
    'getlocations_location_taxonomize_settings' => array(
      'fields' => $fields,
    ),
  );
}