You are here

function vote_storylink_feed_queue in Vote Up/Down 5

1 call to vote_storylink_feed_queue()
vote_storylink_page in ./vote_storylink.module
Menu callback; displays a Drupal page containing recent story links entries.

File

./vote_storylink.module, line 481

Code

function vote_storylink_feed_queue() {
  $sql = db_rewrite_sql("SELECT n.nid, n.title, n.created, r.teaser FROM {node} n INNER JOIN {node_revisions} r ON n.vid = r.vid WHERE n.type = 'storylink' AND n.status = 1 AND n.promote = 0 ORDER BY n.created DESC");
  $result = db_query_range($sql, 0, variable_get('feed_default_items', 10));
  $channel['title'] = variable_get('site_name', 'drupal') . ' queue';
  $channel['link'] = url('storylink/queue', NULL, NULL, TRUE);
  $channel['description'] = t('Queued storylinks');
  node_feed($result, $channel);
}