You are here

function ffc_condition_execute_hide_if_string in Field formatter conditions 7

Hide the source field when target field contains a string.

File

./ffc.module, line 172
Field formatter conditions.

Code

function ffc_condition_execute_hide_if_string(&$build, $source, $configuration, $context = NULL) {
  $found = _target_string_search($build, $configuration, $context);
  if ($found == TRUE) {
    $build[$source]['#access'] = FALSE;
  }
}