function theme_optionwidgets_none in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 5 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()
- optionwidgets_options in modules/
optionwidgets/ optionwidgets.module - Helper function for finding the allowed values list for a field.
File
- modules/
optionwidgets/ optionwidgets.module, line 419 - Defines selection, check box and radio button widgets for text and numeric fields.
Code
function theme_optionwidgets_none($field) {
switch ($field['widget']['type']) {
case 'optionwidgets_buttons':
case 'nodereference_buttons':
case 'userreference_buttons':
return t('N/A');
case 'optionwidgets_select':
case 'nodereference_select':
case 'userreference_select':
return t('- None -');
default:
return '';
}
}