You are here

function theme_ds_plugins in Display Suite 6.2

Same name and namespace in other branches
  1. 6.3 theme/theme_ui.inc \theme_ds_plugins()
  2. 6 theme/theme_ui.inc \theme_ds_plugins()

Theme the form.

File

theme/theme_ui.inc, line 351
Theming functions for ds ui.

Code

function theme_ds_plugins($form) {
  $output = drupal_render($form['info']);
  $header = array(
    t('Status'),
    t('Info'),
  );
  $rows = array();
  foreach ($form['#plugins'] as $key => $plugin) {
    $row = array();
    $row[] = array(
      'data' => drupal_render($form['plugin_' . $plugin['key']]),
    );
    $row[] = array(
      'data' => '<strong>' . $plugin['title'] . '</strong>: ' . $plugin['description'],
    );
    $rows[] = $row;
  }
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}