You are here

function nodequeue_title_substitute in Nodequeue 5.2

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

Substitute the subqueue title into some others tring.

This function does NOT check_plain the title! The output MUST be checked after this is complete.

6 calls to nodequeue_title_substitute()
nodequeue_admin_add_node in ./nodequeue.module
Page callback to add a node to a queue.
nodequeue_admin_remove_node in ./nodequeue.module
Page callback to remove a node from a queue.
nodequeue_admin_view in ./nodequeue.module
Page callback to view a queue.
nodequeue_clear_confirm in ./nodequeue.module
Confirm form to clear a queue.
nodequeue_link in ./nodequeue.module
Implementation of hook_link

... See full list

File

./nodequeue.module, line 2133

Code

function nodequeue_title_substitute($text, $queue, $subqueue) {
  if (empty($text)) {
    return $subqueue->title;
  }
  $text = str_replace('%subqueue', $subqueue->title, $text);
  return $text;
}