function smartqueue_taxonomy_nodequeue_subqueue_title in Nodequeue 5.2
Same name and namespace in other branches
- 6.2 smartqueue.module \smartqueue_taxonomy_nodequeue_subqueue_title()
- 7.3 smartqueue.module \smartqueue_taxonomy_nodequeue_subqueue_title()
- 7.2 modules/smartqueue/smartqueue.module \smartqueue_taxonomy_nodequeue_subqueue_title()
2 calls to smartqueue_taxonomy_nodequeue_subqueue_title()
- smartqueue_taxonomy in ./
smartqueue.module - Implementation of hook_taxonomy.
- smartqueue_taxonomy_nodequeue_subqueues in ./
smartqueue.module - Implementation of hook_nodequeue_subqueues()
File
- ./
smartqueue.module, line 144
Code
function smartqueue_taxonomy_nodequeue_subqueue_title($queue, $reference) {
$vids = explode('-', $queue->reference);
$tids = explode('-', $reference);
$titles = array();
foreach ($vids as $vid) {
$tid = array_shift($tids);
// $tid can be 0, specifically meaning this term is unset.
if ($tid) {
$terms = smartqueue_taxonomy_get_terms($vid);
$titles[$tid] = $terms[$tid];
}
}
return implode('-', $titles);
}