You are here

theme.inc in Entity Reference Multiple 7

Same filename and directory in other branches
  1. 7.2 theme/theme.inc

Preprocessors and helper functions to make theming easier.

File

theme/theme.inc
View 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

Namesort descending Description
theme_entity_reference_multiple_none Returns HTML for the label for the empty value.