function theme_content_admin_field_add_new_field_widget_type in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6 includes/content.admin.inc \theme_content_admin_field_add_new_field_widget_type()
1 theme call to theme_content_admin_field_add_new_field_widget_type()
File
- ./
content_admin.inc, line 554 - Administrative interface for content type creation.
Code
function theme_content_admin_field_add_new_field_widget_type($form) {
$field_types = _content_field_types();
$widget_types = _content_widget_types();
$output = '';
$output .= '<dl>';
foreach ($field_types as $field_name => $field_type) {
$output .= '<dt>' . $field_type['label'] . '</dt>';
foreach ($widget_types as $widget_name => $widget_type) {
if (in_array($field_name, $widget_type['field types'])) {
$output .= '<dd>' . drupal_render($form[$field_name . '-' . $widget_name]) . '</dd>';
}
}
}
$output .= '</dl>';
return $output;
}