You are here

function theme_biblio_citeproc_style_manager_form in Bibliography Module 7.2

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

File

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

Code

function theme_biblio_citeproc_style_manager_form($variables) {
  $form = $variables['form'];
  $rows = 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', array(
    'rows' => $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['avialable_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', array(
    'rows' => $rows,
  ));
  $output .= drupal_render_children($form);
  return $output;
}