theme.inc in Entity Reference Multiple 7
Same filename and directory in other branches
Preprocessors and helper functions to make theming easier.
File
theme/theme.incView source
<?php
/**
* @file
* Preprocessors and helper functions to make theming easier.
*/
/**
* Returns HTML for the label for the empty value.
*
* @param array $variables
* An associative array containing:
* - instance: An array representing the widget requesting the options.
*
* @return string
* The label for empty value.
*/
function theme_entity_reference_multiple_none($variables) {
$option = $variables['option'];
$output = $option == 'option_none' ? t('- None -') : t('- Select a value -');
return $output;
}
Functions
Name![]() |
Description |
---|---|
theme_entity_reference_multiple_none | Returns HTML for the label for the empty value. |