You are here

function theme_views_data_export_feed_icon in Views data export 6

Same name and namespace in other branches
  1. 6.3 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()
  2. 6.2 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()
  3. 7.4 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()
  4. 7 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()
  5. 7.3 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()

Theme a feed link.

This theme function uses the theme pattern system to allow it to be overidden in a more specific manner. The options for overiding this include providing per display id; per type; per display id and per type.

e.g. For the view "export_test" with the display "page_1" and the type "csv" you would have the following options. views_data_export_feed_icon__export_test__page_1__csv views_data_export_feed_icon__export_test__page_1 views_data_export_feed_icon__export_test__csv views_data_export_feed_icon__page_1__csv views_data_export_feed_icon__page_1 views_data_export_feed_icon__csv views_data_export_feed_icon

File

theme/views_data_export.theme.inc, line 30
Theme related functions for processing our output style plugins.

Code

function theme_views_data_export_feed_icon($image_path, $url, $query = '', $text = '') {
  $url_options = array(
    'html' => true,
  );
  if ($query) {
    $url_options['query'] = $query;
  }
  $image = theme('image', $image_path, $text, $text);
  return l($image, $url, $url_options);
}