User: bdragon Branch: HEAD Date: Thu, 09 Oct 2008 17:00:28 +0000 Modified files: /modules/location location.admin.inc location.inc location.install location.module Log message: * Add function location_province_code(). * Fix $op 'delete' on hook_locationapi(). * API CHANGE: Use location_save_locations() with an empty array instead of deleting rows from {location_instance}. This lets us have "real" deletion instead of relying on garbage collection. Before: <code> db_query("DELETE FROM {location_instance} WHERE genid = '%s'", 'mykey:'. $obj->id); </code> After: <code> $locations = array(); location_save_locations($locations, array('genid' => 'mykey:'. $obj->id)); </code> * Remove garbage collection routine and UI from settings page. References are checked automatically now. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/location/location.... http://cvs.drupal.org/diff.php?path=contributions/modules/location/location.... http://cvs.drupal.org/diff.php?path=contributions/modules/location/location.... http://cvs.drupal.org/diff.php?path=contributions/modules/location/location....
participants (1)
-
drupal-cvs@drupal.org