You are here

function theme_barcode_formatter_plain in Barcode 6

Same name and namespace in other branches
  1. 6.2 barcodefield.module \theme_barcode_formatter_plain()
  2. 7.2 barcode.module \theme_barcode_formatter_plain()

Theme function for 'plain' barcode field formatter.

File

./barcode.module, line 136

Code

function theme_barcode_formatter_plain($element) {
  if (!empty($element['#item']['title'])) {
    return $element['#item']['title'] . ': ' . $element['#item']['barcode'];
  }
  else {
    return $element['#item']['barcode'];
  }
}