You are here

function theme_views_data_export_feed_icon in Views data export 7.4

Same name and namespace in other branches
  1. 6.3 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()
  2. 6 theme/views_data_export.theme.inc \theme_views_data_export_feed_icon()
  3. 6.2 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 42
Theme related functions for processing our output style plugins.

Code

function theme_views_data_export_feed_icon($variables) {
  extract($variables, EXTR_SKIP);
  $url_options = array(
    'html' => TRUE,
  );
  if ($query) {
    $url_options['query'] = $query;
  }
  $image = theme('image', array(
    'path' => $image_path,
    'alt' => $text,
    'title' => $text,
  ));
  return l($image, $url, $url_options);
}