function theme_workflow_types_form in Workflow 5.2
Same name and namespace in other branches
- 5 workflow.module \theme_workflow_types_form()
File
- ./
workflow.module, line 1571
Code
function theme_workflow_types_form($form) {
$header = array(
t('Content Type'),
t('Workflow'),
t('Display Workflow Form for:'),
);
$rows = array();
foreach (node_get_types('names') as $type => $name) {
//foreach (element_children($form) as $key) {
// if (in_array($form[$key]['#type'], array('select', 'checkboxes'))) {
$name = $form[$type]['workflow']['#title'];
unset($form[$type]['workflow']['#title']);
$rows[] = array(
$name,
drupal_render($form[$type]['workflow']),
drupal_render($form[$type]['placement']),
);
// }
}
$output = drupal_render($form['help']);
$output .= theme('table', $header, $rows);
return $output . drupal_render($form);
}