function vote_storylink_page_queue in Vote Up/Down 5
1 call to vote_storylink_page_queue()
- vote_storylink_page in ./
vote_storylink.module - Menu callback; displays a Drupal page containing recent story links entries.
File
- ./
vote_storylink.module, line 392
Code
function vote_storylink_page_queue() {
drupal_set_title($title = t('Queue story links'));
$sql = db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'storylink' AND n.status = 1 AND n.promote = 0 ORDER BY n.created DESC");
$result = pager_query($sql, variable_get('default_nodes_main', 10));
while ($node = db_fetch_object($result)) {
$output .= node_view(node_load($node->nid), 1);
}
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
$output .= theme('feed_icon', url('storylink/queue/feed'));
$feed_url = url('storylink/queue/feed', NULL, NULL, TRUE);
drupal_add_feed($feed_url, t('RSS - @title', array(
'@title' => $title,
)));
return $output;
}