You are here

function video_feed in Video 6.2

Same name and namespace in other branches
  1. 5 video.module \video_feed()
  2. 6 video.module \video_feed()

Generate an RSS feed for videos

Return value

feed

1 string reference to 'video_feed'
video_menu in ./video.module
Implementation of hook_menu().

File

./video.module, line 236
video.module

Code

function video_feed() {
  $channel = array(
    'title' => variable_get('site_name', 'drupal') . ' ' . t('videos'),
    'description' => t('Latest videos on') . ' ' . variable_get('site_name', 'drupal'),
    'link' => url('video', array(
      'absolute' => TRUE,
    )),
  );
  $result = db_fetch_object(db_query('SELECT n.nid FROM {node} n WHERE n.type = "video" AND n.status = 1 ORDER BY n.created DESC'));
  node_feed($result, $channel);
}