You are here

function theme_select_or_other_none in Select (or other) 6.2

Same name and namespace in other branches
  1. 6 select_or_other.module \theme_select_or_other_none()
  2. 7.2 select_or_other.module \theme_select_or_other_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_select_or_other_none()
select_or_other_widget in ./select_or_other.module
Implementation of hook_widget().

File

./select_or_other.module, line 644
The Select (or other) module.

Code

function theme_select_or_other_none($field) {
  switch ($field['widget']['type']) {
    case 'select_or_other_buttons':
      return t('N/A');
    case 'select_or_other':
    case 'select_or_other_sort':
      return t('- None -');
    default:
      return '';
  }
}