You are here

function theme_biblio_ui_entity_export_area in Bibliography Module 7.3

Theme callback; Display a button for export in Biblio entity.

1 theme call to theme_biblio_ui_entity_export_area()
Biblio::buildContent in includes/biblio.controller.inc
Builds a structured array representing the entity's content.

File

modules/biblio_ui/biblio_ui.module, line 1308
Main functionality file for the biblio UI module.

Code

function theme_biblio_ui_entity_export_area($variables) {
  $title = t('Export');
  $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/' . $variables['bid'] . '/' . $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' => $title,
    'class' => 'biblio-export-buttons',
  );
  return theme('ctools_dropdown', $attributes);
}