Downloads
Release notes
This is mainly released now because people keep running into #317998: preg_match() expects parameter 2 to be string, array given w pliku /mydrupaldir/includes/bootstrap.inc, linia 670. and re-reporting it.
Changes since DRUPAL-5--3-0-RC1:
- #317998 by szy, mburak: Don't attempt to tokenize arrays.
- #142272 by thierry_gd: Better province names for Provence-Alpes-Cote d'Azur in location.fr.inc.
- 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:
db_query("DELETE FROM {location_instance} WHERE genid = '%s'", 'mykey:'. $obj->id);
After:
$locations = array(); location_save_locations($locations, array('genid' => 'mykey:'. $obj->id));
- Remove garbage collection routine and UI from settings page. References are checked automatically now.
- Better late than never.
Here is a rewritten location_search.module. It uses the search apis and is able to do fulltext searching. It's also cleaner, and will be ported to Drupal 6.
It searches by location, not node. (Restriction to specific types of objects is possible but not implemented yet.)
Hopefully I didn't accidentally leave out / forget any features people were using.
It will need to generate a search index before it will work properly, so do the same thing you would do if you were reindexing the site (i.e. run cron in a loop and watch the percentage indexed number)
Minor api change (optional):
* Add an 'instance_links' op to hook_locationapi so modules can stick in the correct urls for the instances they handle. - Slight fix to #305474, noticed by sterwa: Change the second 'ro' in the list to 'ru'.
- location_search actually does truly depend on search now.
- Make the pager work correctly non-fulltext search.
- Make a change to _location_render to allow submodules to use it properly.
Move the search templates to the location_search folder. - Remove undefined variable.
- Significant improvements to the proximity map.
- Removed the workaround that involved truncating the views cache.
- Fix [#321291]
- Behavior change: Exposed proximity map filters now have correct field names. This allows optional exposed proximity maps to work. (Otherwise, views would not be able to see that the filter was actually filled in.)
- Work around a Views 1 bug that failed to persist filter settings properly when editing a view.
- Add a function, location_check_coordinates(), to centralize the emptiness checks.
Fix map centering when editing locations with LOCATION_LATLON_UNDEFINED coordinates.
See [#317159]