You are here

function theme_petreference_formatter_default in Previewable email templates 6

Theme function for 'default' petreference field formatter.

File

modules/petreference/petreference.module, line 288
Defines a field type for referencing pet template to a node.

Code

function theme_petreference_formatter_default($element) {
  $output = '';
  if (!empty($element['#item']['safe']['pid'])) {
    $output = l($element['#item']['safe']['title'], 'pet/' . $element['#item']['safe']['name']);
  }
  return $output;
}