You are here

function _getlocations_location_taxonomize_set_defaults 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_set_defaults()

Sets all this module's variables to their default values

1 call to _getlocations_location_taxonomize_set_defaults()
getlocations_location_taxonomize_install in modules/getlocations_location_taxonomize/getlocations_location_taxonomize.install
Implements hook_install().

File

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

Code

function _getlocations_location_taxonomize_set_defaults() {
  $defaults = _getlocations_location_taxonomize_variables();
  foreach ($defaults as $key => $value) {
    if ($value) {
      variable_set($key, $value);
    }
    else {
      variable_del($key);
    }
  }
}