You are here

function _site_map_video in Site map 6

Same name and namespace in other branches
  1. 8 site_map.module \_site_map_video()
  2. 5 site_map.module \_site_map_video()
  3. 6.2 site_map.module \_site_map_video()
  4. 7 site_map.module \_site_map_video()

Returns video content if video module is enabled.

File

./site_map.module, line 309
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function _site_map_video() {
  $output = '';
  $class = '';
  if (module_exists('video')) {
    $title = t('Video');
    $output = l(t('Video content'), 'video');
    if (variable_get('site_map_show_rss_links', 1) != 0) {
      $rss_link = theme('site_map_feed_icon', 'video/feed');
      if (variable_get('site_map_show_rss_links', 1) == 1) {
        $output .= ' ' . $rss_link;
      }
      else {
        $class = ' sitemap-rss-left';
        $output = $rss_link . ' ' . $output;
      }
    }
    $output = theme('site_map_box', $title, $output, 'sitemap-video' . $class);
  }
  return $output;
}