/[drupal]/contributions/modules/nodequeue/nodequeue.module
ViewVC logotype

Diff of /contributions/modules/nodequeue/nodequeue.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.96, Sat Oct 24 20:25:47 2009 UTC revision 1.97, Sat Oct 24 20:35:08 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: nodequeue.module,v 1.95 2009/10/06 19:46:18 ezrag Exp $  // $Id: nodequeue.module,v 1.96 2009/10/24 20:25:47 ezrag Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 159  function nodequeue_nodeapi(&$node, $op, Line 159  function nodequeue_nodeapi(&$node, $op,
159          // of a translation set, don't delete the queue record.          // of a translation set, don't delete the queue record.
160          // Instead, data will be updated in the 'translation_change' op, below.          // Instead, data will be updated in the 'translation_change' op, below.
161          $queues = nodequeue_load_queues(array($obj->qid));          $queues = nodequeue_load_queues(array($obj->qid));
162          $queue = nodequeue_load_queues(array($obj->qid));          $queue = array_shift($queues);
163          if (!$queue->i18n || empty($node->tnid)) {          if (!$queue->i18n || (isset($node->tnid) && empty($node->tnid))) {
164            // This removes by nid, not position, because if we happen to have a            // This removes by nid, not position, because if we happen to have a
165            // node in a queue twice, the 2nd position would be wrong.            // node in a queue twice, the 2nd position would be wrong.
166            nodequeue_subqueue_remove_node($obj->sqid, $node->nid);            nodequeue_subqueue_remove_node($obj->sqid, $node->nid);

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

  ViewVC Help
Powered by ViewVC 1.1.2