You are here

function theme_wysiwyg_profile_overview in Wysiwyg 5

Same name and namespace in other branches
  1. 5.2 wysiwyg.admin.inc \theme_wysiwyg_profile_overview()
  2. 6.2 wysiwyg.admin.inc \theme_wysiwyg_profile_overview()
  3. 6 wysiwyg.admin.inc \theme_wysiwyg_profile_overview()
  4. 7.2 wysiwyg.admin.inc \theme_wysiwyg_profile_overview()

Return HTML for the Wysiwyg profile overview form.

File

./wysiwyg.admin.inc, line 451
Integrate Wysiwyg editors into Drupal.

Code

function theme_wysiwyg_profile_overview(&$form) {
  if (!isset($form['formats'])) {
    return;
  }
  $output = '';
  $header = array(
    t('Input format'),
    t('Editor'),
    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;
}