You are here

function hook_conditional_fields_alter in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 conditional_fields.api.php \hook_conditional_fields_alter()

Alter the list of available fields.

Parameters

string &$fields: Fields available to this module, provided by modules that implement hook_conditional_fields().

string $entity_type: Name of the entity type being configured.

string $bundle_name: Name of the entity bundle being configured.

See also

ConditionalFieldForm::getFields()

hook_conditional_fields()

conditional_fields_conditional_fields_alter()

1 function implements hook_conditional_fields_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

conditional_fields_conditional_fields_alter in ./conditional_fields.module
Implements hook_conditional_fields_alter().

File

./conditional_fields.api.php, line 57
Hooks for the conditional_fields module.

Code

function hook_conditional_fields_alter(&$fields, $entity_type, $bundle_name) {
  asort($fields);
}