function nodequeue_subqueue_remove_node in Nodequeue 7.2
Same name and namespace in other branches
- 5.2 nodequeue.module \nodequeue_subqueue_remove_node()
- 6.2 nodequeue.module \nodequeue_subqueue_remove_node()
- 7.3 nodequeue.module \nodequeue_subqueue_remove_node()
Remove a node from the queue. If a node is in the queue more than once, only the first (closest to 0 position, or the front of the queue) will be removed.
Parameters
$sqid: The subqueue to remove nodes from.
$nid: The node to remove.
7 calls to nodequeue_subqueue_remove_node()
- action_nodequeue_remove in includes/
nodequeue.actions.inc - Old-style action to remove a node from a queue.
- NodequeueAPISubqueueUnitTest::testNodequeueSubqueueRemoveNode in tests/
nodequeue.test - nodequeue_action_remove_node in ./
nodequeue.rules.inc - Action: Remove the given node from the given nodequeue.
- nodequeue_admin_remove_node in includes/
nodequeue.admin.inc - Page callback to remove a node from a queue.
- nodequeue_node_delete in ./
nodequeue.module - Implements hook_node_delete.
File
- ./
nodequeue.module, line 1448 - Maintains queues of nodes in arbitrary order.
Code
function nodequeue_subqueue_remove_node($sqid, $nid) {
if ($pos = nodequeue_get_subqueue_position($sqid, $nid)) {
nodequeue_subqueue_remove($sqid, $pos);
if (module_exists('apachesolr')) {
apachesolr_mark_entity('node', $nid);
}
}
}