function conditional_fields_dependency_default_options in Conditional Fields 7.3
Provides default options for a dependency.
For an explanation of available options,
See also
conditional_fields_field_attach_dependency()
4 calls to conditional_fields_dependency_default_options()
- conditional_fields_attach_dependency in ./
conditional_fields.module - Attaches a single dependency to a form.
- conditional_fields_dependency_insert in ./
conditional_fields.module - Inserts a new dependency in the database. For the format of $options,
- conditional_fields_dependency_load in ./
conditional_fields.module - Menu argument loader: loads a dependency from the database.
- conditional_fields_load_dependencies in ./
conditional_fields.module - Loads all dependencies from the database.
File
- ./
conditional_fields.module, line 1241 - Define dependencies between fields based on their states and values.
Code
function conditional_fields_dependency_default_options() {
return array(
'state' => 'visible',
'condition' => 'value',
'grouping' => 'AND',
'values_set' => CONDITIONAL_FIELDS_DEPENDENCY_VALUES_WIDGET,
'value' => array(),
'values' => array(),
'value_form' => array(),
'effect' => 'show',
'effect_options' => array(),
'element_view' => array(
CONDITIONAL_FIELDS_FIELD_VIEW_EVALUATE => CONDITIONAL_FIELDS_FIELD_VIEW_EVALUATE,
CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_ORPHAN => CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_ORPHAN,
CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_UNTRIGGERED_ORPHAN => 0,
CONDITIONAL_FIELDS_FIELD_VIEW_HIGHLIGHT => 0,
CONDITIONAL_FIELDS_FIELD_VIEW_DESCRIBE => 0,
),
'element_view_per_role' => 0,
'element_view_roles' => array(),
'element_edit' => array(
CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_ORPHAN => CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_ORPHAN,
CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_UNTRIGGERED_ORPHAN => 0,
CONDITIONAL_FIELDS_FIELD_EDIT_RESET_UNTRIGGERED => 0,
),
'element_edit_per_role' => 0,
'element_edit_roles' => array(),
'selector' => '',
);
}