function theme_optionwidgets_none in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/optionwidgets/optionwidgets.module \theme_optionwidgets_none()
- 6 modules/optionwidgets/optionwidgets.module \theme_optionwidgets_none()
- 6.2 modules/optionwidgets/optionwidgets.module \theme_optionwidgets_none()
Theme the label for the empty value for options that are not required. The default theme will display N/A for a radio list and blank for a select.
1 theme call to theme_optionwidgets_none()
File
- ./
optionwidgets.module, line 200 - Defines selection, check box and radio button widgets for text and numeric fields.
Code
function theme_optionwidgets_none($widget_type, $field_name, $node_type) {
switch ($widget_type) {
case 'options_buttons':
return t('N/A');
default:
return '';
}
}