function nodequeue_arrange_subqueue_entry in Nodequeue 5.2
2 calls to nodequeue_arrange_subqueue_entry()
- nodequeue_arrange_subqueue in ./
nodequeue.module - View the contents of a subqueue, with links to re-order the queue.
- _nodequeue_ajax_add in ./
nodequeue.module
File
- ./
nodequeue.module, line 801
Code
function nodequeue_arrange_subqueue_entry($queue, $subqueue, $node, $nids_visible = array()) {
$qid = $queue->qid;
$sqid = $subqueue->sqid;
$query_string = nodequeue_get_query_string($node->position, TRUE);
$buttons = l(theme('image', drupal_get_path('module', 'nodequeue') . '/images/go-up.png', t('Move up')), "admin/content/nodequeue/{$qid}/up/{$sqid}/{$node->position}", array(
'title' => t('Move up'),
'class' => 'nodequeue-move-up',
), $query_string, NULL, FALSE, TRUE);
$buttons .= l(theme('image', drupal_get_path('module', 'nodequeue') . '/images/go-down.png', t('Move down')), "admin/content/nodequeue/{$qid}/down/{$sqid}/{$node->position}", array(
'title' => t('Move down'),
'class' => 'nodequeue-move-down',
), $query_string, NULL, FALSE, TRUE);
$buttons .= l(theme('image', drupal_get_path('module', 'nodequeue') . '/images/go-top.png', t('Move to front')), "admin/content/nodequeue/{$qid}/front/{$sqid}/{$node->position}", array(
'title' => t('Move to front'),
'class' => 'nodequeue-move-front',
), $query_string, NULL, FALSE, TRUE);
$buttons .= l(theme('image', drupal_get_path('module', 'nodequeue') . '/images/go-bottom.png', t('Move to back')), "admin/content/nodequeue/{$qid}/back/{$sqid}/{$node->position}", array(
'title' => t('Move to back'),
'class' => 'nodequeue-move-back',
), $query_string, NULL, FALSE, TRUE);
$buttons .= l(theme('image', drupal_get_path('module', 'nodequeue') . '/images/delete.png', t('Remove from queue')), "admin/content/nodequeue/{$qid}/remove/{$sqid}/{$node->position}", array(
'title' => t('Remove from queue'),
'class' => 'nodequeue-remove',
), $query_string, NULL, FALSE, TRUE);
$output = '<tr id="nodequeue-row-' . $node->position . '" class="nodequeue-row ' . ($node->position % 2 ? 'odd' : 'even') . '">';
if (in_array($node->nid, $nids_visible)) {
$output .= '<td>' . l($node->title, "node/{$node->nid}") . '</td>';
}
else {
$output .= '<td>' . t('Restricted Node - NID: @nid', array(
'@nid' => $node->nid,
)) . '</td>';
}
$output .= '<td>' . theme('username', $node) . '</td>';
$output .= '<td>' . format_date($node->created) . '</td>';
$output .= '<td>' . $buttons . '</td>';
$output .= '</tr>';
return $output;
}