function hook_conditional_fields_behaviors_alter in Conditional Fields 7.3
Alter the list of available behaviors.
Parameters
$behaviors: An associative array with two keys representing contexts: 'edit' and 'view'. Each key contains an associative array of behaviors that are executed during the corresponding phase. The keys of the array are function names and the values are a human readable label of the behavior.
1 invocation of hook_conditional_fields_behaviors_alter()
- conditional_fields_behaviors in ./
conditional_fields.module - List of behaviors that can be applied when editing forms and viewing content with dependencies.
File
- ./
conditional_fields.api.php, line 151 - Hooks provided by Conditional Fields.
Code
function hook_conditional_fields_behaviors_alter(&$behaviors) {
// Edit behavior.
$behaviors['edit']['conditional_fields_example_fancy_edit_behavior'] = t('A fancy edit behavior for my module');
// View behavior.
$behaviors['view']['conditional_fields_example_fancy_view_behavior'] = t('A fancy view behavior for my module');
}