| 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 |
| 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); |