function hook_ffc_conditions_info in Field formatter conditions 7
Implements hook_ffc_conditions_info().
This hook can be put in a separate file called MODULE.ffc_conditions.inc.
Returns an array of conditions where the keys are an unique name and the value is an array with following keys:
- title: the label of the condition.
- field types: (optional) A collection of field types on which this conditions only applies.
- no form: (optional) whether this condition has no form.
The key is used to construct the form and the execute callback.
2 functions implement hook_ffc_conditions_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- ffc_ffc_conditions_info in ./
ffc.ffc_conditions_info.inc - Implements hook_ffc_conditions_info().
- ffc_test_ffc_conditions_info in tests/
ffc_test/ ffc_test.module - Implements hook_ffc_conditions_info().
1 invocation of hook_ffc_conditions_info()
- ffc_get_conditions in ./
ffc.module - Get all field formatter conditions.
File
- ./
ffc.api.php, line 28 - Hooks provided by Field formatter conditions.
Code
function hook_ffc_conditions_info() {
$conditions = array();
$conditions['show'] = array(
'title' => t('Hide field when target is not empty'),
'field types' => array(
'image',
),
);
return $conditions;
}