function theme_slickgrid_views_plugin_table in Slickgrid 6
Same name and namespace in other branches
- 7.2 theme/theme.inc \theme_slickgrid_views_plugin_table()
- 7 theme/theme.inc \theme_slickgrid_views_plugin_table()
Theme the form for the matrix style plugin
File
- ./
slickgrid.module, line 485
Code
function theme_slickgrid_views_plugin_table($form) {
$output = drupal_render($form['description_markup']);
$header = array(
t('Field'),
t('Width'),
t('Sortable'),
);
$rows = array();
$plugin_types = slickgrid_get_plugin_types();
$header += $plugin_types;
foreach (element_children($form['columns']) as $id) {
$row = array();
$row[] = drupal_render($form['columns'][$id]['name']);
$row[] = drupal_render($form['columns'][$id]['width']);
$row[] = drupal_render($form['columns'][$id]['sortable']);
foreach (array_keys($plugin_types) as $plugin_type) {
$row[] = drupal_render($form['columns'][$id][$plugin_type]);
}
$rows[] = $row;
}
$output .= theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}