--- ed_classified.module_old	2007-08-05 10:30:05.000000000 -0700
+++ ed_classified.module	2007-09-22 00:55:48.000000000 -0700
@@ -19,79 +19,7 @@
    * See: http://drupal.org/node/46012
    */
 
-define('EDI_CLASSIFIED_MODULE_NAME', 'ed_classified');
-
-/** 
- * Set EDI_CLASSIFIED_PATH_NAME to override the URL path component for classified ads.
- * For example, if you know that you won't collide with other module node types, you could use 'classified' or 'classified-ads' or whatever you want
- * 
- * @See: http://drupal.org/node/122260 - Drupal 5.x node.module seems to dislike underscores in node types.. sigh. Do not use underscores here or you will 
- * see strange side effects.
- */
-define('EDI_CLASSIFIED_PATH_NAME', 'ed-classified');  
-
-define('EDI_CLASSIFIED_MODULE_VERSION', '$Id: ed_classified.module,v 1.1.4.41 2007/08/05 17:30:05 inactivist Exp $');
-
-define('EDI_CLASSIFIED_VAR_DEF_BODYLEN_LIMIT', 500);
-define('EDI_CLASSIFIED_VAR_DEF_EXPIRATION_DAYS', 30);
-define('EDI_CLASSIFIED_VAR_DEF_PURGE_AGE', 15);               // how many days after expiration to purge ads?
-define('EDI_CLASSIFIED_VAR_DEF_AD_EXPIRATION_EMAIL_WARNING_DAYS', 7);
-define('EDI_CLASSIFIED_VAR_DEF_SHOW_CONTACT_LINK_ON_POSTS', TRUE);
-define('EDI_CLASSIFIED_VAR_DEF_SEND_EMAIL_REMINDERS', FALSE);
-define('EDI_CLASSIFIED_VAR_DEF_ALTER_ATTACHMENT_TEXT', TRUE); // If upload_image module is present, offer enhanced functionality
-define('EDI_CLASSIFIED_VAR_DEF_ALTER_ATTACHMENT_TEXT_DESCRIPTION', 'Add any photos or other images to your ad here.  Please be sure to check the \'list\' checkbox in order to ensure that the photo is visible in your ad.  Note that changes made to the attachments are not permanent until you save this classified ad by clicking the [Submit] button.');
-
-
-define('EDI_CLASSIFIED_VAR_DEF_EMAIL_BODY', 'One or more of your classified ads on !sitename (!siteurl) are expiring soon.  Please sign in and visit !user_ads_url to check your ads.');
-define('EDI_CLASSIFIED_VAR_DEF_EMAIL_SUBJ', '!sitename reminder: classified ads expiring soon!');
-/** 
- * Define user notification types (for future use.)
- */
-
-define('EDI_CLASSIFIED_NOTIFICATION_AD_PERIODIC',         0); /// Periodic user notifications 
-define('EDI_CLASSIFIED_NOTIFICATION_AD_EXPIRED',          1); /// Notification on ad expired
-define('EDI_CLASSIFIED_NOTIFICATION_AD_EXPIRING_SOON',    2); /// An ad is expiring soon
-
-define('EDI_CLASSIFIED_SECS_IN_DAY', 86400);                  // # secs in a day
-
-include_once(drupal_get_path('module', 'ed_classified') . '/ed_classified_notifications.inc');
-include_once(drupal_get_path('module', 'ed_classified') . '/ed_classified_delete.inc');
-
-/** UNUSED AT PRESENT 
- define('EDI_CLASSIFIED_STATE_ACTIVE', 0);
- define('EDI_CLASSIFIED_STATE_EXPIRED', 1);
-**/
-
-
-/**
- * config variable helpers
- */
-
-function _ed_classified_cfg_varname($name)
-{
-  // ensure unique varnames for this module
-  return  EDI_CLASSIFIED_MODULE_NAME .'_'. $name;
-}
-
-function _ed_classified_variable_get($name, $defval, $log=FALSE) {
-  $val = variable_get(_ed_classified_cfg_varname($name),$defval);
-  if ($log) {
-    _edi_wd(sprintf('variable_get \'%s\'= \'%s\'',
-                    _ed_classified_cfg_varname($name),
-                    $val));
-  }
-  return $val;
-}
-
-function _ed_classified_variable_set($name, $newval, $log=FALSE) {
-  if ($log) {
-    _edi_wd(sprintf('variable_set \'%s\' changed from \'%s\' to \'%s\'',
-                    _ed_classified_cfg_varname($name),
-                    _ed_classified_variable_get($name, ''),
-                    $newval));
-  }
-  variable_set(_ed_classified_cfg_varname($name),$newval);
-}
+require_once(drupal_get_path('module', 'ed_classified').'/ed_classified_defaults.inc');
 
 /**
  * Implementation of hook_block().
