You are here

function theme_pdf_export_button in PDF Export 7

Theme function for the PDF Export module.

1 theme call to theme_pdf_export_button()
pdf_export_views_handler_area::render in pdf_export_views/pdf_export_views_handler_area.inc
Render the area.

File

./pdf_export.theme.inc, line 10
Theme functions for PDF Export module.

Code

function theme_pdf_export_button($variables) {
  $attributes = $variables['attributes'] + array(
    'data-pdf' => $variables['file_name'],
    'data-css-paths' => $variables['css_paths'],
    'data-css-theme' => $variables['theme_name'],
    'data-content-selector' => $variables['css_selector'],
    'title' => $variables['label'],
  );
  $attributes['class'][] = 'pdf-export';
  return l($variables['label'], 'javascript:void(0);', array(
    'external' => TRUE,
    'attributes' => $attributes,
  ));
}