You are here

function theme_content_taxonomy_options_widgets_none in Content Taxonomy 6.2

Same name and namespace in other branches
  1. 6 content_taxonomy_options.module \theme_content_taxonomy_options_widgets_none()

Theme the label for the empty value for options (for optional radios and single selects).

1 theme call to theme_content_taxonomy_options_widgets_none()
content_taxonomy_allowed_values in ./content_taxonomy.module
Called by content_allowed_values to create the $options array for the content_taxonomy_options

File

./content_taxonomy_options.module, line 91
Defines a widget type for content_taxonomy for options

Code

function theme_content_taxonomy_options_widgets_none($field) {
  switch ($field['widget']['type']) {
    case 'content_taxonomy_options':
      return t('N/A');
    case 'content_taxonomy_select':
      return t('- None -');
    default:
      return '';
  }
}