Log of /contributions/modules/location/location.install
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.43 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 31 22:09:35 2009 UTC
(2 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
CVS Tags:
HEAD
Changes since
1.42: +17 -4 lines
Diff to
previous 1.42
WARNING -- PORT IN PROGRESS -- WARNING
This is a very very very preliminary port of some pieces of Location to D7.
There's a lot of work to do before this is remotely usable.
WARNING -- PORT IN PROGRESS -- WARNING
commit 9acd11c864797596209d5c12916e25e209a074cd
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 16:51:59 2009 -0500
D7: Fix instance saving. I have now successfully put a location on a node in D7. (Of course there's a LOT to do still, but huzzah!)
commit 868ed6352debce3720e4093b50c42397e66cf991
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 16:40:22 2009 -0500
Fix another class bug. Fix location fieldset theming (for a given value of "fix" of course)
commit d10a646b73da9c8b00c002a13483b986f0018340
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 16:31:43 2009 -0500
D7: fix call to private api function that got renamed.
commit b79cea16e3c74d0cc7941cd4abcd3b616b793c9f
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 16:28:00 2009 -0500
D7: Put locative information into the vertical tabs thingie.
commit bf4df441e08a2ba1a0b6164a3688aa2275607f79
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 16:19:10 2009 -0500
D7: Fix class arrayness and remove a stray & to make PHP stop crashing.
commit be9d1114797319f0015c266f3f6d4a6d398fea2f
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 15:22:13 2009 -0500
D7: files[] for location_node.
commit f6c32c64cb43f06fc5baca569826ccaf88b931c3
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 15:19:30 2009 -0500
Fix infinite loops with drupal_render_children(). Remove the drupal_render() call at the end as well as it's nonsensical now and ALSO loops.
commit 125639604c4e5c29d03b3da9265b5fc766347794
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 15:18:10 2009 -0500
D7 does not have an implicit #theme for elements anymore.
commit 4dcf85adcd30c0a53417fa3c53b2a4882b3cadf4
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 15:08:51 2009 -0500
Use core's country list. (Which was pulled from location in the first place, hee hee)
commit ebb58524f2b9ef2eca7513971afbb9029743290f
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Mon Aug 31 14:59:53 2009 -0500
D7: Remove location_default_country variable and use core's site_default_country variable instead.
commit 4cf3950e1a3fa1369ad5bdecac4c3649b2783f2a
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 17:34:26 2009 -0500
Add warning.
commit 934fdd3aecb4435b7215705d72998b13439b0920
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 17:14:51 2009 -0500
D7: hook_node split, some of location_node.module, add file to track API changes.
commit 9e69f25d971fa6b5623fb026d5cfd6dba2cc2d70
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 16:17:18 2009 -0500
D7: 'file' / 'file_path' stuff got rolled back.
commit 80cbd3b688c4a46dc349d449a1abc265894d619f
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 15:42:45 2009 -0500
D7: [#161301]
commit 35f82a0845ef020411a351fb307f821f78c5e397
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 15:38:53 2009 -0500
bit more dbtngification.
commit 161280467e70664822e397405f3892628de7acdd
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 15:26:38 2009 -0500
dbtngify uninstall hook. The rest I'll do later.
commit d6596a08f7a6a424df5109eafae3d7a5b7ce5522
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Fri Aug 28 15:20:52 2009 -0500
DBTNGify location.module.
Hopefully I didn't introduce bugs.
commit 6986ba94148c19d461808d61441c0033a4abfe31
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Wed Aug 19 16:02:59 2009 -0500
Start a todo list.
commit 397adf2c619de9708e4135442204328aac7ae2d8
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Wed Aug 19 15:57:30 2009 -0500
D7: Use '#markup' not '#value' for markup
commit c3fbd82f21e1af2f024871b247c01bc01ca71a7e
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Wed Aug 19 15:53:17 2009 -0500
D7: The hook_menu() and hook_theme() "file" and "file path" keys have
been removed.
commit cf8acf59887f73b997e50aedec95aa5a9784df84
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Wed Aug 19 15:51:55 2009 -0500
D7: Module .info files must now specify all loadable code files
explicitly.
commit f4cf33530c11406157745db44cfab0069287da36
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Wed Aug 19 15:51:01 2009 -0500
D7: Permissions are required to have titles and descriptions.
commit 4a29c6fbafdc1ab106c95ed74df27f7dcfe03bca
Author: Brandon Bergren <bdragon@rtk0.net>
Date: Wed Aug 19 15:41:46 2009 -0500
Location HEAD starting point.
Aug 19 2009 15:42
Revision
1.41.2.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Feb 25 18:49:30 2009 UTC
(9 months ago)
by
bdragon
Branch:
DRUPAL-6--3
CVS Tags:
DRUPAL-6--3-1-RC1
Changes since
1.41: +16 -21 lines
Diff to
previous 1.41
, to
next main 1.43
Split location_node out like I did for location_user. Huzzah!
Refactor RSS support to make it easier to reuse. *cough*cck georss support?*cough*
Fix tests to load location_node.
Split relevant uninstall sections out into location_node.install and location_user.install.
Revision
1.42 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 24 22:54:38 2009 UTC
(9 months ago)
by
bdragon
Branch:
MAIN
Changes since
1.41: +16 -21 lines
Diff to
previous 1.41
Split location_node out like I did for location_user. Huzzah!
Refactor RSS support to make it easier to reuse. *cough*cck georss support?*cough*
Fix tests to load location_node.
Split relevant uninstall sections out into location_node.install and location_user.install.
Revision
1.25.2.12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 9 21:34:00 2008 UTC
(11 months, 2 weeks ago)
by
bdragon
Branch:
DRUPAL-5--3
Changes since
1.25.2.11: +68 -0 lines
Diff to
previous 1.25.2.11
, to
branch point 1.25
#342163 by jgadrow, update routine by me: Add missing prefix to the db_next_id() call.
If someone manages to hit this with postgresql, I'd be quite suprised, as the call has been broken since March and it is rather obvious when db_next_id is called against something invalid on postgresql -- it throws an error.
I put a message in the postgresql case to followup on the issue.
Revision
1.40 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 9 17:05:22 2008 UTC
(11 months, 2 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.39: +7 -2 lines
Diff to
previous 1.39
Fix captialization of NOTE: to match the other notes.
Don't blindly enable location_user, only enable it if location is already enabled.
Revision
1.39 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 5 18:08:31 2008 UTC
(11 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.38: +10 -0 lines
Diff to
previous 1.38
#300426, part 1: Split off user locations into a seperate module to make it easier to completely disable.
Revision
1.25.2.9 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 24 20:26:52 2008 UTC
(12 months ago)
by
bdragon
Branch:
DRUPAL-5--3
Changes since
1.25.2.8: +24 -0 lines
Diff to
previous 1.25.2.8
, to
branch point 1.25
Backport of the D6 changes I committed on the 20th.
* 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.)
Revision
1.35 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 20 19:46:21 2008 UTC
(12 months, 1 week ago)
by
bdragon
Branch:
MAIN
Changes since
1.34: +24 -1 lines
Diff to
previous 1.34
OK, I've been sitting on this MUCH longer than is comfortable.
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.)
Revision
1.25.2.7 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 21 22:46:39 2008 UTC
(13 months, 1 week ago)
by
bdragon
Branch:
DRUPAL-5--3
CVS Tags:
DRUPAL-5--3-0-UNSTABLE4
Changes since
1.25.2.6: +120 -1 lines
Diff to
previous 1.25.2.6
, to
branch point 1.25
A) Clean up a bunch of duplication and centralize the way location settings are handled.
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.
(The Drupal 5 version of this is a quick as possible port, there may be lingering typos. It seemed to work OK, but I won't know for sure until I minimize the diff against HEAD again.)
Revision
1.34 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 21 21:34:44 2008 UTC
(13 months, 1 week ago)
by
bdragon
Branch:
MAIN
CVS Tags:
DRUPAL-6--3-0-UNSTABLE4
Changes since
1.33: +119 -0 lines
Diff to
previous 1.33
A) Clean up a bunch of duplication and centralize the way location settings are handled.
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.
Revision
1.25.2.6 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 9 19:34:38 2008 UTC
(13 months, 2 weeks ago)
by
bdragon
Branch:
DRUPAL-5--3
CVS Tags:
DRUPAL-5--3-0-RC2
Changes since
1.25.2.5: +1 -3 lines
Diff to
previous 1.25.2.5
, to
branch point 1.25
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.
Revision
1.32 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 9 17:00:27 2008 UTC
(13 months, 2 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.31: +37 -44 lines
Diff to
previous 1.31
* 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.
Revision
1.25.2.5 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 9 16:39:47 2008 UTC
(13 months, 2 weeks ago)
by
bdragon
Branch:
DRUPAL-5--3
Changes since
1.25.2.4: +25 -34 lines
Diff to
previous 1.25.2.4
, to
branch point 1.25
* 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.
Revision
1.31 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 7 19:09:48 2008 UTC
(13 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.30: +82 -33 lines
Diff to
previous 1.30
Although I can't fix the update warnings proper, I can inform the user why they happen, reduce them, and repair the stuff reported in #317823.
Revision
1.28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 18 23:28:46 2008 UTC
(15 months, 1 week ago)
by
bdragon
Branch:
MAIN
Changes since
1.27: +72 -27 lines
Diff to
previous 1.27
Cause a temporal anomoly in the name of preserving data.
Convert any non node/user locations into genids during update.
This fixes a 3.0 release blocking todo in the installer.
Revision
1.27 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 6 16:38:39 2008 UTC
(15 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.26: +2 -1 lines
Diff to
previous 1.26
Rip out the notion of "supported countries." With the dynamic country loading, this isn't really needed.
This breaks some of the "province listing" stuff, but it needed work anyway.
Revision
1.18 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 24 07:07:31 2008 UTC
(22 months ago)
by
bdragon
Branch:
MAIN
Changes since
1.17: +82 -11 lines
Diff to
previous 1.17
Re-integrate the changes that weren't bogus.
Comment out the "new" update until I can verify that it was actually TESTED IN POSTGRESQL :-/
Revision
1.17 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 24 06:46:50 2008 UTC
(22 months ago)
by
bdragon
Branch:
MAIN
Changes since
1.16: +163 -183 lines
Diff to
previous 1.16
I hate to do this, but that first patch was just unacceptable.
It is going to be faster to merge in the last 6 pages of changes by hand.
Revert (sans a few files) to DRUPAL-5 again and start over.
Revision
1.16 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 24 02:03:53 2008 UTC
(22 months ago)
by
bdragon
Branch:
MAIN
Changes since
1.15: +28 -23 lines
Diff to
previous 1.15
Normalizing file headers, ensuring all the $Id$ tags work (Somehow a bunch of files got -kk'd in CVS so the tag expansion wasn't working), changing documentation around.
Revision
1.11 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 21 19:40:37 2008 UTC
(22 months, 1 week ago)
by
brmassa
Branch:
MAIN
Changes since
1.10: +3 -3 lines
Diff to
previous 1.10
Bugs Fixed:
* Drupal code standards compliance
* PHP_E code compliance
* Proper SQL instaler for PostgreSQL
* Save installer for MySQL and PostgreSQL (easier to exchange them)
* #197107 "Typo in location.module renders location distance search unit settings ineffective"
* #199289 "Close tags in location.theme"
* #87292 "US/CA location reference non-existent 'state' location attribute"
New Features:
* Location Fax uninstaller
* Location Phone uninstaller
* Countries list is now sorted alphabetically and translated
* State list is now a autocomplete
* Users can have more that one address on the new address book
Misc:
* Several new Doxygen documentation
* 80-character per line policy
* Code organization
* Functions listed in alphabetic order
* Several functions renamed for consistency
* All non-hook functions have a _ at the beggining, to avoid to executed as a hook
Revision
1.7.2.2 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 2 01:57:25 2007 UTC
(2 years, 3 months ago)
by
ankur
Branch:
DRUPAL-5
CVS Tags:
DRUPAL-5--2-0,
DRUPAL-5--2-1,
DRUPAL-5--2-2,
DRUPAL-5--2-3,
DRUPAL-5--2-4,
DRUPAL-5--2-5,
DRUPAL-5--2-6,
DRUPAL-5--2-7
Changes since
1.7.2.1: +62 -0 lines
Diff to
previous 1.7.2.1
, to
branch point 1.7
, to
next main 1.43
Committing patches for http://drupal.org/node/158101 and http://drupal.org/node/132541
Ideas taken from patches submitted by ray007 and obscurity
Revision
1.2.2.6 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 26 15:16:54 2007 UTC
(2 years, 8 months ago)
by
geodan
Branch:
DRUPAL-4-7
Changes since
1.2.2.5: +19 -0 lines
Diff to
previous 1.2.2.5
, to
branch point 1.2
#91581 - step 2, updating location.inc to reflect new country list, location.install to rename Swedish country code from sw to se in the database and also removing the contents of location.sw.inc
Revision
1.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 26 14:54:29 2007 UTC
(2 years, 8 months ago)
by
geodan
Branch:
MAIN
Changes since
1.7: +19 -0 lines
Diff to
previous 1.7
#91581 - step 2, updating location.inc to reflect new country list, location.install to rename Swedish country code from sw to se in the database and also removing the contents of location.sw.inc
Revision
1.7 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 11 01:14:48 2007 UTC
(2 years, 10 months ago)
by
ankur
Branch:
MAIN
Branch point for:
DRUPAL-5
Changes since
1.6: +48 -3 lines
Diff to
previous 1.6
Adding pgsql support for multiple locations (left out of previous update).
Also fixing _install() fn to reflect updated database schema for multiple locations.
(previously only support for updating). Patch courtesy of drupal.org user
'sammys' (see http://drupal.org/node/107531 )
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.