Hi there.

This question has already been asked in the support queue for the scheduler module (http://drupal.org/node/449172). The problem is basically that the nodeteaser module hasn't implemented the 'load' case in the nodeteaser_nodeapi() function:

function nodeteaser_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
  switch ($op) {
    case 'delete':
        _nodeteaser_delete($node);
      break;
    case 'insert':
        _nodeteaser_insert($node);
        break;
    case 'update':
      _nodeteaser_update($node);
      break;
    case 'prepare':
      $node = _nodeteaser_load($node);
      $node = node_prepare($node, $teaser);
      break;
    case 'view':
      $node = _nodeteaser_load($node);
      $node = node_prepare($node, $teaser);
      break;
  }
}

Here it should be a 'load' case, but I'm not sure what the code in it should be. Maybe some of the developers are able to shed some light on this?

Comments

mflage’s picture

Oh, I forgot to mention the problem itself (even though it's explained at the link provided). The problem is that when using scheduled publishing of the nodes, the content of the nodeteaser table is wiped for that nid.