You are here

function theme_calendar_systems_profile_overview in Calendar Systems 6.3

Same name and namespace in other branches
  1. 8 calendar_systems.admin.inc \theme_calendar_systems_profile_overview()
  2. 6 calendar_systems.admin.inc \theme_calendar_systems_profile_overview()
  3. 7.3 calendar_systems.admin.inc \theme_calendar_systems_profile_overview()
  4. 7 calendar_systems.admin.inc \theme_calendar_systems_profile_overview()
  5. 7.2 calendar_systems.admin.inc \theme_calendar_systems_profile_overview()

Return HTML for the Calendar systems profile overview form.

File

./calendar_systems.admin.inc, line 419
Integrate Calendar systems editors into Drupal.

Code

function theme_calendar_systems_profile_overview($form) {
  if (!isset($form['formats'])) {
    return;
  }
  $output = '';
  $header = array(
    t('Language'),
    t('Calendar system'),
    array(
      'data' => t('Operations'),
      'colspan' => 2,
    ),
  );
  $rows = array();
  foreach (element_children($form['formats']) as $item) {
    $format =& $form['formats'][$item];
    $rows[] = array(
      drupal_render($format['name']),
      drupal_render($format['editor']),
      isset($format['edit']) ? drupal_render($format['edit']) : '',
      isset($format['remove']) ? drupal_render($format['remove']) : '',
    );
  }
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}