Log of /contributions/modules/location/location.inc
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.99 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 31 22:09:34 2009 UTC
(2 months, 4 weeks ago)
by
bdragon
Branch:
MAIN
CVS Tags:
HEAD
Changes since
1.98: +6 -268 lines
Diff to
previous 1.98
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.95 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Dec 10 19:30:30 2008 UTC
(11 months, 2 weeks ago)
by
bdragon
Branch:
MAIN
CVS Tags:
DRUPAL-6--3-0
Branch point for:
DRUPAL-6--3
Changes since
1.94: +0 -33 lines
Diff to
previous 1.94
Killing location_latlon_form(). Sorry, place_taxonomy.module, but this isn't technically part of the external API, and since Location itself doesn't use it, keeping it around is just asking for trouble.
Revision
1.93 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 2 22:50:21 2008 UTC
(11 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.92: +15 -5 lines
Diff to
previous 1.92
* Fix [#339471] (reported by theabacus) -- Make province search accept country names.
* 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.
Revision
1.92 -
(
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
CVS Tags:
DRUPAL-6--3-0-RC2,
DRUPAL-6--3-0-UNSTABLE4
Changes since
1.91: +16 -1 lines
Diff to
previous 1.91
* 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.85.2.6 -
(
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
CVS Tags:
DRUPAL-5--3-0-RC2,
DRUPAL-5--3-0-UNSTABLE4
Changes since
1.85.2.5: +15 -0 lines
Diff to
previous 1.85.2.5
, to
branch point 1.85
* 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.85.2.4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 17 16:22:54 2008 UTC
(14 months, 1 week ago)
by
bdragon
Branch:
DRUPAL-5--3
Changes since
1.85.2.3: +5 -34 lines
Diff to
previous 1.85.2.3
, to
branch point 1.85
Backport commit 131997: 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.90 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 16 18:23:09 2008 UTC
(14 months, 1 week ago)
by
bdragon
Branch:
MAIN
CVS Tags:
DRUPAL-6--3-0-test3
Changes since
1.89: +3 -1 lines
Diff to
previous 1.89
Make location_province_name() and location_country_name() more resilient to nonstandard input.
Further refinement of views support.
Reimplementation of the 'location_directory' default view.
REMOVAL of the 'additional' field -- It is now part of Street.
Fixing sortability in the 'location_table' default view.
Revision
1.87 -
(
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.86: +5 -34 lines
Diff to
previous 1.86
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.82 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jun 17 16:57:44 2008 UTC
(17 months, 1 week ago)
by
bdragon
Branch:
MAIN
Changes since
1.81: +1 -39 lines
Diff to
previous 1.81
The location_geocode_meta_tags stuff has been commented out since location.module rev 1.73 from Jan 4 2007. I'm pretty sure it's safe to remove by now. ;)
Revision
1.78 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 5 18:37:03 2008 UTC
(17 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.77: +3 -5 lines
Diff to
previous 1.77
move some of the megapatch user address book stuff out of the code (into a local file, I still have to take a look at it..)
More LOCATION_PATH removal.
Revision
1.69 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Mar 8 18:38:05 2008 UTC
(20 months, 3 weeks ago)
by
bdragon
Branch:
MAIN
Changes since
1.68: +5 -2 lines
Diff to
previous 1.68
#220404 by stephenpickett: Country specific geocoding functions not being detected properly.
Thanks, stephenpickett!
Revision
1.61 -
(
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.60: +1224 -1219 lines
Diff to
previous 1.60
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.60 -
(
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.59: +7 -6 lines
Diff to
previous 1.59
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.57 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 22 22:38:38 2008 UTC
(22 months, 1 week ago)
by
brmassa
Branch:
MAIN
Changes since
1.56: +180 -1 lines
Diff to
previous 1.56
Misc:
* rename some functions to avoid be called by a external hook call
* moved some functions to location.inc
Revision
1.54 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 22 20:53:29 2008 UTC
(22 months, 1 week ago)
by
brmassa
Branch:
MAIN
Changes since
1.53: +14 -14 lines
Diff to
previous 1.53
Misc:
* location_latlon_rough() renamed to _ocation_latlon_rough()
* _location_country_configured() renamed to _location_country_enabled()
* Code organization
Revision
1.50 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 21 21:54:20 2008 UTC
(22 months, 1 week ago)
by
brmassa
Branch:
MAIN
Changes since
1.49: +251 -246 lines
Diff to
previous 1.49
Bugs fixed:
* all country codes are now lower case again and the upper case feature now works fine.
Revision
1.49 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 21 20:03:36 2008 UTC
(22 months, 1 week ago)
by
brmassa
Branch:
MAIN
Changes since
1.48: +2 -2 lines
Diff to
previous 1.48
Bugs fixed:
* Removed the debug z() function :)
* "U.S. Virgin Islands" renamed to "United States Virgin Islands"
Revision
1.48 -
(
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.47: +1303 -1210 lines
Diff to
previous 1.47
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.45.2.7 -
(
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.45.2.6: +21 -2 lines
Diff to
previous 1.45.2.6
, to
branch point 1.45
, to
next main 1.99
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.46 -
(
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.45: +249 -246 lines
Diff to
previous 1.45
#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.37 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 10 04:20:30 2006 UTC
(3 years, 3 months ago)
by
ankur
Branch:
MAIN
Changes since
1.36: +10 -3 lines
Diff to
previous 1.36
Adding geocoding capabilities to location module and interface.
Currently, only Yahoo! supported for US addresses.
Revision
1.31 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Mar 28 03:08:43 2006 UTC
(3 years, 8 months ago)
by
weitzman
Branch:
MAIN
Changes since
1.30: +1 -5 lines
Diff to
previous 1.30
always use theme_add_style() to bring in a stylesheet. don't use theme('stylesheet_import') or else you break feature
Revision
1.28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 21 01:32:16 2006 UTC
(3 years, 9 months ago)
by
ankur
Branch:
MAIN
Changes since
1.27: +10 -10 lines
Diff to
previous 1.27
Instead of checking to see if a variable isset() AND != '', checking same condition
simply w/ empty() function.
Revision
1.17 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jul 22 02:19:01 2005 UTC
(4 years, 4 months ago)
by
ankur
Branch:
MAIN
Changes since
1.16: +1 -1 lines
Diff to
previous 1.16
Extending linking features. For now, just adding more links. Soon to come:
configurability of which mapping services are linked to.
Revision
1.16 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue May 31 20:18:08 2005 UTC
(4 years, 5 months ago)
by
ankur
Branch:
MAIN
Changes since
1.15: +1 -1 lines
Diff to
previous 1.15
Fixing an inconsistency for value returned by variable_get() for the
'location_configured_countries' variable.
Revision
1.15 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri May 13 02:00:15 2005 UTC
(4 years, 6 months ago)
by
ankur
Branch:
MAIN
Changes since
1.14: +9 -5 lines
Diff to
previous 1.14
Taking care of the foreach() error and alphabetizing the list of
countries displayed in q=admin/settings/location
Revision
1.12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 30 23:41:11 2005 UTC
(4 years, 7 months ago)
by
ankur
Branch:
MAIN
Changes since
1.11: +4 -4 lines
Diff to
previous 1.11
Takes care of http://drupal.org/node/21550.
Because I am committing from a windows machine, CVS may think that I've
changed every line in the file because of Unix and Windows use different
line-breaks. In anycase, only the two calls to _location_province_select_options()
were changed to insert the missing third argument....
Revision
1.9 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 26 00:07:14 2005 UTC
(4 years, 7 months ago)
by
ankur
Branch:
MAIN
Changes since
1.8: +75 -36 lines
Diff to
previous 1.8
Apologies for the lenghty commit; time is scarce at present.
This commit fixes #21264, #21226, #20789, #20790.
Revision
1.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 23 02:00:17 2005 UTC
(4 years, 7 months ago)
by
ankur
Branch:
MAIN
Changes since
1.7: +10 -0 lines
Diff to
previous 1.7
These commits are all a part of a minor UI change that involves using
a postal code to fill in city and province when saving a location, if
an identifying postal code and country are available in the parameter
location.
Revision
1.7 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Apr 21 02:02:05 2005 UTC
(4 years, 7 months ago)
by
ankur
Branch:
MAIN
Changes since
1.6: +20 -147 lines
Diff to
previous 1.6
location.inc has been updated to optimize postal code searching. The API
is unaffected, but you will want to grab a copy of
modules/location/database/zipcodes.mysql when you grab this version of the file.
Revision
1.6 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Apr 20 01:54:44 2005 UTC
(4 years, 7 months ago)
by
ankur
Branch:
MAIN
Changes since
1.5: +26 -1 lines
Diff to
previous 1.5
Added some testing code (commented-out in committed file).
Also reduced some redundancy in data processing when loading.
Revision
1.4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 30 22:45:32 2005 UTC
(4 years, 8 months ago)
by
ankur
Branch:
MAIN
Changes since
1.3: +2 -1 lines
Diff to
previous 1.3
Changed country abbreviation for UK from 'gb' to 'uk'. 'gb' is what I originally
got as the country's two-letter ISO code as listed in ISO 3166-1. However, 'uk'
is used overwhelmingly and is also the convention for domain names.
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.