You are here

function ffc_rules_hide_fields in Field formatter conditions 7

Rules callback: hide fields.

File

./ffc.rules.inc, line 101
Rules integration for Field formatter conditions.

Code

function ffc_rules_hide_fields($ffc_element, $ffc_field) {
  $ffc_element->fired = TRUE;
  $ffc_element->element[$ffc_field]['#access'] = FALSE;
}