You are here

function theme_wysiwyg_profile_overview in Wysiwyg 5.2

Same name and namespace in other branches
  1. 5 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 475
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['delete']) ? drupal_render($format['delete']) : '',
    );
  }
  $form['formats']['#children'] = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}