function theme_views_pdf_icon in Views PDF 7.3
Same name and namespace in other branches
- 6 views_pdf.module \theme_views_pdf_icon()
- 7 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.
3 theme calls to theme_views_pdf_icon()
- views_pdf_plugin_style_grid::attach_to in ./
views_pdf_plugin_style_grid.inc - Attach this view to another display.
- views_pdf_plugin_style_table::attach_to in ./
views_pdf_plugin_style_table.inc - Attach this view to another display.
- views_pdf_plugin_style_unformatted::attach_to in ./
views_pdf_plugin_style_unformatted.inc - Attach this view to another display.
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);
}
}