function theme_biblio_ui_view_export_area in Bibliography Module 7.3
Theme callback; Display a button for export in a View.
1 theme call to theme_biblio_ui_view_export_area()
- biblio_ui_handler_export_area::render in modules/
biblio_ui/ includes/ views/ handlers/ biblio_ui_handler_export_area.inc - Render the area.
File
- modules/
biblio_ui/ biblio_ui.module, line 1282 - Main functionality file for the biblio UI module.
Code
function theme_biblio_ui_view_export_area($variables) {
$links = array();
foreach (biblio_get_exportable_biblio_styles() as $style_name => $style) {
if (!empty($style['export'])) {
foreach ($style['export'] as $format_name => $format) {
$links[$style_name . "_" . $format_name] = array(
'href' => 'biblio/export_view/' . $variables['view_name'] . '/' . $variables['display_name'] . '/' . $style_name . '/' . $format_name,
'title' => $format['name'],
'attributes' => array(
'title' => t('Click to Download Biblio in @format format', array(
'@format' => $format['name'],
)),
),
);
}
}
}
$attributes = array(
'links' => $links,
'title' => t('Export'),
'class' => 'biblio-export-buttons',
);
return theme('ctools_dropdown', $attributes);
}