[contributions:vauxia] /modules/geo geo.inc /modules/geo/modules/geo_data geo_data.admin.inc geo_data.views.inc /modules/geo/db mysql_spatial.inc postgis.inc /modules/geo geo.module geo.views.inc /modules/geo/modules/geo_data geo_data.module /modules/geo/modules/geo_field geo_field.module
User: vauxia Branch: HEAD Date: Mon, 11 Aug 2008 03:24:22 +0000 Added files: /modules/geo geo.inc /modules/geo/modules/geo_data geo_data.admin.inc geo_data.views.inc Modified files: /modules/geo/db mysql_spatial.inc postgis.inc /modules/geo geo.module geo.views.inc /modules/geo/modules/geo_data geo_data.module /modules/geo/modules/geo_field geo_field.module Log message: Attempt to clean up and consolidate some common code. Removing unused geo_fields() function from geo.module. In fact, remove everything with the exception of the new geo() callback function. Through this, you can call API operations. For example, geo('add_field') adds a field to the database, as invoked from geo_$backend_add_field. However, since certain functions are common to both supported databases, geo('drop_field') will actually call geo_drop_field. Call it inheritance if you want. I also removed geo_init, which was handling much of this, and created geo.inc to house common functionality. Thus, none of Geo, other its 42-line module, is included until it's actually going to be put to use. Also, beginnings of views integration is accidentally slipping in. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/geo/geo.inc http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/db/mysql_spati... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/db/postgis.inc... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/geo.module&old... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/geo.views.inc&... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_fi...
participants (1)
-
drupal-cvs@drupal.org