| 1 |
<?php |
<?php |
| 2 |
// $Id: nodequeue.module,v 1.96 2009/10/24 20:25:47 ezrag Exp $ |
// $Id: nodequeue.module,v 1.97 2009/10/24 20:35:08 ezrag Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 2317 |
// A 0 will set the reference to the sqid of the queue. |
// A 0 will set the reference to the sqid of the queue. |
| 2318 |
$queue->add_subqueue = array(0 => $queue->title); |
$queue->add_subqueue = array(0 => $queue->title); |
| 2319 |
} |
} |
| 2320 |
|
//If the qid is set at this point, we're saving an existing queue. |
| 2321 |
|
if (isset($queue->qid)) { |
| 2322 |
|
//We don't check to see if the title has been updated since the $queue object already matches $form_state['values']. |
| 2323 |
|
db_query("UPDATE {nodequeue_subqueue} SET title = '%s' WHERE qid = %d", array($form_state['values']['title'], $queue->qid)); |
| 2324 |
|
} |
| 2325 |
} |
} |
| 2326 |
|
|
| 2327 |
// -------------------------------------------------------------------------- |
// -------------------------------------------------------------------------- |