You are here

function theme_brazilianids_formatter_default in Brazilian IDs 6

Theme function for 'default' brazilianids field formatter.

$element['#item']: the sanitized $delta value for the item, $element['#field_name']: the field name, $element['#type_name']: the $node->type, $element['#formatter']: the $formatter_name, $element['#node']: the $node, $element['#delta']: the delta of this item, like '0',

File

./brazilianids_cck.inc, line 160
brazilianids_cck.inc Deal with brazilian IDs like CPF and CNPJ as CCK fields.

Code

function theme_brazilianids_formatter_default($element) {
  return !empty($element['#item']['view']) ? $element['#item']['view'] : strip_tags($element['#item']['safe']);
}