function theme_views_pdf_icon in Views PDF 7
Same name and namespace in other branches
- 6 views_pdf.module \theme_views_pdf_icon()
- 7.3 views_pdf.module \theme_views_pdf_icon()
- 7.2 views_pdf.module \theme_views_pdf_icon()
Theme function for the PDF icon of appended PDFs.
2 theme calls to theme_views_pdf_icon()
- views_pdf_plugin_style_table::attach_to in ./
views_pdf_plugin_style_table.inc - Attach this view to another display as a feed.
- views_pdf_plugin_style_unformatted::attach_to in ./
views_pdf_plugin_style_unformatted.inc - Attach this view to another display as a feed.
File
- ./
views_pdf.module, line 72 - PDF Views allows the creation of PDF's directly from a view. Without the creation of HTML first.
Code
function theme_views_pdf_icon($vars) {
$title = $vars['title'];
$path = $vars['path'];
$options = $vars['options'];
$options['html'] = TRUE;
$options['attributes']['class'] = 'pdf-icon';
$imagePath = drupal_get_path('module', 'views_pdf') . '/images/pdf.png';
if ($image = theme('image', array(
'path' => $imagePath,
'title' => $title,
'alt' => $title,
))) {
return l($image, $path, $options);
}
}