You are here

function theme_optionwidgets_none in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 optionwidgets.module \theme_optionwidgets_none()
  2. 6.3 modules/optionwidgets/optionwidgets.module \theme_optionwidgets_none()
  3. 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 353
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':
      return t('N/A');
    default:
      return '';
  }
}