- Dec 02, 2008
-
-
Brandon Bergren authored
* Implement multiple country autocomplete. * Allow location_province_code() to operate on an array of countries. * Extend autocomplete to handle setting specific classes to join country and province fields together -- should be more robust. * Switch to using views "force single" stuff for country and province filters. - If you are having trouble editing country or province filters, please see [#341827]! * Implement autocomplete for views province filter.
-
- Nov 20, 2008
-
-
Brandon Bergren authored
This is a major change that I have been testing and writing locally. I just tagged UNSTABLE4 before this commit so there's a point to go back to if I end up having to roll back. * Add per-location-field weights and defaults. * Add location_api_variant() that I will increment when breaking something in the future that might be used from another module. It is now 1. * Make settings on location_cck work nicely. * Field settings are now in a table. * Field settings defaults can now be overridden in the UI. * Field settings are now weighted. (Draggable in D6!) * "Force Default" may now be used for all fields. * Content type settings validation is repaired again. * Major COW changes (again) -- Should not have any impact on sites, but be careful until the new code is proven. * Tests were added to ensure COW functionality doesn't break. (Tests were committed earlier) API Changes: * If you were using a location_element, the #location_settings is now the *entire* settings array, not $settings['form']['fields']! * hook_locationapi() 'collection default' and 'default values' ops have been merged into a single 'defaults' op, which now allows specifying default weight. * Collection status 3 is now 4. (Relevant for the 'country' field.)
-
- Nov 19, 2008
-
-
Brandon Bergren authored
#330318, reported by danielb: Never, ever load anything when an empty id is passed. We have to enforce this on our side because Drupal doesn't do SQL NULLs.
-
- Nov 18, 2008
-
-
Brandon Bergren authored
-
- Nov 17, 2008
-
-
Brandon Bergren authored
-
- Oct 24, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
-
- Oct 23, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
Better fix for #306171: Pass along criteria to location_save() to ensure that the lid conservation code doesn't reuse a lid tied to a single *other instance*. This fixes a bug when making a change to a location when adding a revision.
-
Brandon Bergren authored
This makes using a location_element much easier, and centralizes the code that does required.
-
Brandon Bergren authored
-
- Oct 21, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
This allows us to have multiple user locations, and simplifies the API for associating locations with other things. The variables used by location got all shuffled around because of this, but I put in compatibility code to keep setting location_maxnum_{nodetype} and location_defaultnum_{nodetype}, because there is a lot of contrib modules checking for them. B) Made user locations work more like node locations. C) Allow more than one location to be "required". D) Reorganize the variables. Now there is a single variable per content type. (location_settings_{nodetype}) E) Make virtual fields hideable, and add the map link as a virtual field. F) API change: The return value of 'virtual fields' op is now an array of keys and values, where the values are the labels for the hide checkboxes.
-
Brandon Bergren authored
-
- Oct 15, 2008
-
-
Brandon Bergren authored
Fix map centering when editing locations with LOCATION_LATLON_UNDEFINED coordinates. See [#317159]
-
- Oct 09, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
* 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.
-
- Oct 02, 2008
-
-
Brandon Bergren authored
-
- Sep 30, 2008
-
-
Brandon Bergren authored
-
- Sep 29, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
Split token support into its own include file. Fix views 2 support for location_fax and location_phone.
-
Brandon Bergren authored
Fix how defaults are used when expanding location elements. This eliminates warnings after enabling location_phone / location_fax, and lets 'collection default' work as intended.
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
Fix #314835, reported by marcoBauli: Make collapsibility work again. I had accidentally broken this while fixing notices. Additionally, collapsible now works on single-location forms.
-
Brandon Bergren authored
-
- Sep 19, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
-
- Sep 17, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
-
- Sep 16, 2008
-
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
-
Brandon Bergren authored
-
- Sep 13, 2008
-
-
Brandon Bergren authored
Forward port the comments added to the backport of commit 139463. The scary part is that merge actually did the right thing.
-
- Sep 11, 2008
-
-
Ankur Rishi authored
Geocoding options now save.
-