function theme_ds_plugins in Display Suite 6.3
Same name and namespace in other branches
- 6 theme/theme_ui.inc \theme_ds_plugins()
- 6.2 theme/theme_ui.inc \theme_ds_plugins()
Theme the form.
File
- theme/
theme_ui.inc, line 346 - 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;
}