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