diff -u b/conditional_fields.api.php b/conditional_fields.api.php --- b/conditional_fields.api.php +++ b/conditional_fields.api.php @@ -13,7 +13,7 @@ /** * Build a list of available fields. * - * Fields that use the Field API should be available to Confitional Fields + * Fields that use the Field API should be available to Conditional Fields * automatically. This hook provides a mechanism to register pseudo-fields * (such as those provided by Field Group.) * @@ -103,7 +103,7 @@ * @see hook_conditional_fields_children(). */ function hook_conditional_fields_children_alter(&$fields, $entity_type, $bundle_name, $field) { - // Do something with the children fields. + // Do something with the child fields. } /** only in patch2: unchanged: --- a/src/ConditionalFieldsFormHelper.php +++ b/src/ConditionalFieldsFormHelper.php @@ -136,6 +136,7 @@ class ConditionalFieldsFormHelper { 'effects' => $this->effects, ]; } + return $this; }