You are here

function theme_biblio_citeproc_style_manager_form in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/biblio_citeproc.admin.inc \theme_biblio_citeproc_style_manager_form()
  2. 7.2 modules/CiteProc/biblio_citeproc.admin.inc \theme_biblio_citeproc_style_manager_form()

File

modules/CiteProc/biblio_citeproc.admin.inc, line 109

Code

function theme_biblio_citeproc_style_manager_form($form) {
  $rows = array();
  $header = array();
  $rows[] = array(
    array(
      'data' => t('Current default style'),
    ),
    array(
      'data' => '<b>' . drupal_render($form['current_default']) . '</b>',
    ),
  );
  $rows[] = array(
    array(
      'data' => t('Example citation:'),
    ),
    array(
      'data' => biblio_citeproc_example_citation(),
    ),
  );
  $output = theme('table', $header, $rows);
  $rows = array();
  $rows[] = array(
    array(
      'data' => drupal_render($form['installed_styles']) . '<br>' . drupal_render($form['default']) . drupal_render($form['edit']),
    ),
    array(
      'data' => drupal_render($form['install']) . '<br>' . drupal_render($form['remove']),
    ),
    array(
      'data' => drupal_render($form['available_styles']) . '<br>' . drupal_render($form['install_all']),
    ),
  );
  $rows[] = array(
    array(
      'data' => drupal_render($form['import_csl_file']) . drupal_render($form['import']),
      'colspan' => 3,
    ),
  );
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}