function ffc_condition_execute_hide_if_empty in Field formatter conditions 7
Hide the source field if target field is empty.
File
- ./
ffc.module, line 153 - Field formatter conditions.
Code
function ffc_condition_execute_hide_if_empty(&$build, $source, $configuration) {
if (empty($build[$configuration['target']]['#items'])) {
$build[$source]['#access'] = FALSE;
}
}