You are here

function nodequeue_get_content_id in Nodequeue 7.2

Same name and namespace in other branches
  1. 6.2 nodequeue.module \nodequeue_get_content_id()
  2. 7.3 nodequeue.module \nodequeue_get_content_id()

Return content id based on i18n settings

6 calls to nodequeue_get_content_id()
nodequeue_admin_add_node in includes/nodequeue.admin.inc
Page callback to add a node to a queue.
nodequeue_admin_remove_node in includes/nodequeue.admin.inc
Page callback to remove a node from a queue.
nodequeue_api_autocomplete in ./nodequeue.module
Fetch a list of nodes available to a given subqueue for autocomplete.
nodequeue_node_links in ./nodequeue.module
Returns an array of nodequeue links for a node.
nodequeue_node_tab in includes/nodequeue.admin.inc
Display the queue controls for a node.

... See full list

File

./nodequeue.module, line 2480
Maintains queues of nodes in arbitrary order.

Code

function nodequeue_get_content_id($queue, $node) {
  return $queue->i18n && !empty($node->tnid) ? $node->tnid : $node->nid;
}