function theme_workflow_admin_ui_type_map_form in Workflow 7.2
Same name and namespace in other branches
- 7 workflow_admin_ui/workflow_admin_ui.pages.inc \theme_workflow_admin_ui_type_map_form()
Theme the workflow type mapping form.
1 theme call to theme_workflow_admin_ui_type_map_form()
- workflow_admin_ui_type_map_form in workflow_admin_ui/
workflow_admin_ui.page.type_map.inc - Page builder. Show a maintenance table for type mapping.
File
- workflow_admin_ui/
workflow_admin_ui.page.type_map.inc, line 132 - Provides the type_map maintenance form.
Code
function theme_workflow_admin_ui_type_map_form($variables) {
$output = '';
$form = $variables['form'];
$header = array(
t('Content Type'),
t('Workflow'),
t('Display Workflow Form on:'),
);
$caption = t('Each content type may have a separate workflow. The form for
changing workflow state can be displayed when editing a node, editing a
comment for a node, or both.');
$rows = array();
foreach (node_type_get_names() as $node_type => $type_name) {
$rows[] = array(
check_plain(t($type_name)),
drupal_render($form[$node_type]['workflow']),
drupal_render($form[$node_type]['placement']),
);
}
$output .= theme('table', array(
'header' => $header,
'rows' => $rows,
'caption' => $caption,
));
return $output;
}