function ffc_condition_execute_CONDITION in Field formatter conditions 7
Implements ffc_condition_execute_CONDITION().
Executes the condition. This is an automatically generated function callback where CONDITION is the key you return in hook_ffc_conditions_info.
Parameters
$build: The current entity that is being creating for output.
$source: The source field for which this condition is executed.
$configuration: The configuration of the condition.
$context: The current context of the field in which it is being rendered.
File
- ./
ffc.api.php, line 97 - Hooks provided by Field formatter conditions.
Code
function ffc_condition_execute_CONDITION(&$build, $source, $configuration, $context) {
if (!empty($build[$configuration['target']]['#items'])) {
$build[$source]['#access'] = FALSE;
}
}