You are here

function theme_entity_reference_multiple_none in Entity Reference Multiple 7.2

Same name and namespace in other branches
  1. 7 theme/theme.inc \theme_entity_reference_multiple_none()

Returns HTML for the label for the empty value.

Parameters

array $variables: An associative array containing:

  • instance: An array representing the widget requesting the options.

Return value

string The label for empty value.

1 theme call to theme_entity_reference_multiple_none()
_entity_reference_multiple_get_options in ./entity_reference_multiple.module
Collects the options for a field.

File

theme/theme.inc, line 18
Preprocessors and helper functions to make theming easier.

Code

function theme_entity_reference_multiple_none($variables) {
  $option = $variables['option'];
  $output = $option == 'option_none' ? t('- None -') : t('- Select a value -');
  return $output;
}