You are here

function nodequeue_subqueue_size_text in Nodequeue 5.2

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

Get a textual representation of a nodequeue's queue size.

6 calls to nodequeue_subqueue_size_text()
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_generate_form in ./nodequeue_generate.module
nodequeue_node_tab in ./nodequeue.module
Display the queue controls for a node.
nodequeue_view_queues in ./nodequeue.module
Display a list of queues and their status for the administrator.

... See full list

File

./nodequeue.module, line 2097

Code

function nodequeue_subqueue_size_text($max, $count, $long = TRUE) {
  if (empty($count)) {
    $message = theme('nodequeue_subqueue_empty_text');
  }
  else {
    if ($count == $max) {
      $message = theme('nodequeue_subqueue_full_text');
    }
    else {
      if ($long) {
        $message = theme('nodequeue_subqueue_count_text', $count);
      }
      else {
        $message = $count;
      }
    }
  }
  return $message;
}