function theme_content_admin_field_add_new_field_widget_type in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 5 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()
- _content_admin_field_add_new in includes/
content.admin.inc
File
- includes/
content.admin.inc, line 509 - 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 .= '<p>' . t('Choose the type of value to store and an input method from the list below.') . '</p>';
$output .= '<dl>';
foreach ($field_types as $field_name => $field_type) {
$output .= '<dt>' . $field_type['label'] . '</dt>';
$output .= '<dd><em>' . $field_type['description'] . '</em></dd>';
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;
}