Index: scheduler.module
===================================================================
--- scheduler.module    (revision 29)
+++ scheduler.module    (working copy)
@@ -6,7 +6,7 @@
  */
 function scheduler_help($section) {
   if ($section == 'admin/modules#description') {
-    return t('A module to schedule when nodes are (un)published.');
+    return t('A module to schedule when nodes are promoted.');
   }
 }
 
@@ -15,7 +15,7 @@
  * Implementation of hook_perm().
  */
 function scheduler_perm() {
-  return array('schedule (un)publishing of nodes');
+  return array('schedule promotion of nodes');
 }
 
 /**
@@ -34,7 +34,7 @@
       'path' => 'scheduler/timecheck',
       'type' => MENU_CALLBACK,
       'callback' => '_scheduler_timecheck',
-      'access' => user_access('schedule (un)publishing of nodes'),
+      'access' => user_access('schedule promotion of nodes'),
     );
   }
   return $items;
@@ -49,15 +49,15 @@
   if ('node_type_form' == $form_id) {
     $form['workflow']['scheduler'] = array(
       '#type' => 'checkbox', 
-      '#title' => t('Enable scheduled (un)publishing'), 
+      '#title' => t('Enable scheduled promotion'), 
       '#default_value' => variable_get('scheduler_'. $form['#node_type']->type, 0),
-      '#description' => t('Check this box to enable scheduled (un)publishing for this node type.')
+      '#description' => t('Check this box to enable scheduled promotion for this node type.')
     );
   }
 
   // is this a node form?
   else if (isset($form['type']['#value']) && $form['type']['#value'] .'_node_form' == $form_id) {
-    if (user_access('schedule (un)publishing of nodes')) {
+    if (user_access('schedule promotion of nodes')) {
       // if scheduling has been enabled for this node type
       if (variable_get('scheduler_'. $form['type']['#value'], 0) == 1) {
 
@@ -93,25 +93,25 @@
         
         $form['scheduler_settings']['publish_on'] = array(
           '#type' => 'textfield', 
-          '#title' => t('Publish on'), 
+          '#title' => t('Promote on'), 
           '#maxlength' => 25,
           //we subtract the time zone to show the user the correct time they entered
           //and below that we show the timezone to adjust this time by
           //we store the adjusted timezone value in the database for cron
           '#default_value' => $defaults->publish_on ? date('Y-m-d H:i:s', $defaults->publish_on - $defaults->timezone) : '',
-          '#description' => t('Format: %time. Leave blank to publish on the time of form submission.', array('%time' => date('Y-m-d H:i:s'))),
+          '#description' => t('Format: %time. Leave blank to promote on the time of form submission.', array('%time' => date('Y-m-d H:i:s'))),
           '#attributes' => $jscalendar ? array('class' => 'jscalendar') : array()
         );
         
         $form['scheduler_settings']['unpublish_on'] = array(
           '#type' => 'textfield', 
-          '#title' => t('Unpublish on'), 
+          '#title' => t('Demote on'), 
           '#maxlength' => 25, 
           //we subtract the time zone to show the user the correct time they entered
           //and below that we show the timezone to adjust this time by
           //we store the adjusted timezone value in the database for cron
           '#default_value' => $defaults->unpublish_on ? date('Y-m-d H:i:s', $defaults->unpublish_on - $defaults->timezone) : '',
-          '#description' => t('Format: %time. Leave blank to not unpublish this node.', array('%time' => date('Y-m-d H:i:s'))),
+          '#description' => t('Format: %time. Leave blank to not demote this node.', array('%time' => date('Y-m-d H:i:s'))),
           '#attributes' => $jscalendar ? array('class' => 'jscalendar') : array()
         );
         
@@ -123,7 +123,7 @@
           '#title' => t('Time zone'), 
           '#default_value' => $defaults->timezone ? $defaults->timezone : (strlen($user->timezone) ? $user->timezone : variable_get('date_default_timezone', 0)),
           '#options' => $zones, 
-          '#description' => t('Select the time zone to (un)publish in.')
+          '#description' => t('Select the time zone to promote in.')
         );
       }    
     } 
@@ -135,7 +135,7 @@
  * Implementation of hook_nodeapi().
  */
 function scheduler_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
-  if (user_access('schedule (un)publishing of nodes')) {
+  if (user_access('schedule promotion of nodes')) {
     switch ($op) {
       case 'load':
         if ($node->nid) {
@@ -154,7 +154,7 @@
         // if it has been set, we want to make sure the node is unpublished
         // since it will be published at a later date
         if ($node->publish_on != '') {
-          $node->status = 0;
+          $node->promote = 0;
         }
       
         //adjust the entered times for timezone consideration
@@ -205,12 +205,12 @@
   $clear_cache = FALSE;
   
   //if the time now is greater than the time to publish a node, publish it
-  $nodes = db_query('SELECT *, (publish_on - timezone) AS utc_publish_on FROM {scheduler} s LEFT JOIN {node} n ON s.nid = n.nid WHERE n.status = 0 AND s.publish_on > 0 AND s.publish_on < %d + s.timezone', time());
+  $nodes = db_query('SELECT *, (publish_on - timezone) AS utc_publish_on FROM {scheduler} s LEFT JOIN {node} n ON s.nid = n.nid WHERE n.promote = 0 AND s.publish_on > 0 AND s.publish_on < %d + s.timezone', time());
   
   while ($node = db_fetch_object($nodes)) {
     $node = node_load($node->nid);
     $node->changed = $node->utc_publish_on;
-    $node->status = 1;
+    $node->promote = 1;
     node_save($node);
     
     //if this node is not to be unpublished, then we can delete the record
@@ -225,18 +225,18 @@
     //invoke scheduler API
     _scheduler_scheduler_api($node, 'publish');
     
-    watchdog('content', t('@type: scheduled publishing of %title.', array('@type' => $node->type, '%title' => $node->title)), WATCHDOG_NOTICE, l(t('view'), 'node/'. $node->nid));
+    watchdog('content', t('@type: scheduled promotion of %title.', array('@type' => $node->type, '%title' => $node->title)), WATCHDOG_NOTICE, l(t('view'), 'node/'. $node->nid));
     $clear_cache = TRUE;
   }
   
   //if the time is greater than the time to unpublish a node, unpublish it
-  $nodes = db_query('SELECT *, (unpublish_on - timezone) AS utc_unpublish_on FROM {scheduler} s LEFT JOIN {node} n ON s.nid = n.nid WHERE n.status = 1 AND s.unpublish_on > 0 AND s.unpublish_on < %d + s.timezone', time());
+  $nodes = db_query('SELECT *, (unpublish_on - timezone) AS utc_unpublish_on FROM {scheduler} s LEFT JOIN {node} n ON s.nid = n.nid WHERE n.promote = 1 AND s.unpublish_on > 0 AND s.unpublish_on < %d + s.timezone', time());
   
   while ($node = db_fetch_object($nodes)) {
     //if this node is to be unpublished, we can update the node and remove the record since it can't be republished
     $node = node_load($node->nid);
     $node->changed = $node->utc_publish_on;
-    $node->status = 0;
+    $node->promote = 0;
     node_save($node);
 
     db_query('DELETE FROM {scheduler} WHERE nid = %d', $node->nid);
@@ -244,7 +244,7 @@
     //invoke scheduler API
     _scheduler_scheduler_api($node, 'unpublish');
     
-    watchdog('content', t('@type: scheduled unpublishing of %title.', array('@type' => $node->type, '%title' => $node->title)), WATCHDOG_NOTICE, l(t('view'), 'node/'. $node->nid));
+    watchdog('content', t('@type: scheduled demotion of %title.', array('@type' => $node->type, '%title' => $node->title)), WATCHDOG_NOTICE, l(t('view'), 'node/'. $node->nid));
     $clear_cache = TRUE;
   }
   
Index: scheduler.info
===================================================================
--- scheduler.info      (revision 29)
+++ scheduler.info      (working copy)
@@ -1,5 +1,5 @@
 name = Scheduler
-description = This module allows nodes to be published and unpublished on specified dates.
+description = This module allows nodes to be promoted and demoted on specified dates.
 
 ; Information added by drupal.org packaging script on 2007-07-30
 version = "5.x-1.6"
