You are here

function theme_biblio_citeproc_style_manager_form in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 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 138

Code

function theme_biblio_citeproc_style_manager_form($variables) {
  $form = $variables['form'];
  $rows = array();
  $updated = drupal_render($form['current_update']);
  $updated = empty($updated) ? $updated : '</br>' . $updated;
  $rows[] = array(
    array(
      'data' => t('Current default style:'),
    ),
    array(
      'data' => '<b>' . drupal_render($form['current_default']) . '</b>' . '</br><i>' . drupal_render($form['current_summary']) . '</i>' . $updated,
    ),
  );
  $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']),
    ),
    array(
      'data' => drupal_render($form['install']) . '<br>' . drupal_render($form['remove']),
    ),
    array(
      'data' => drupal_render($form['available_styles']),
    ),
  );
  $rows[] = array(
    array(
      'data' => drupal_render($form['default']) . drupal_render($form['edit']) . drupal_render($form['update_installed']),
    ),
    array(
      'data' => '',
    ),
    array(
      'data' => drupal_render($form['update_available']),
    ),
  );
  $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;
}