You are here

function _field_collection_process_children_attached in Field collection 7

Recurses through field children and processes thier attachments.

1 call to _field_collection_process_children_attached()
field_collection_field_attach_form in ./field_collection.module
Implements hook_field_attach_form().

File

./field_collection.module, line 1528
Module implementing field collection field type.

Code

function _field_collection_process_children_attached($elements) {
  if (empty($elements)) {
    return;
  }
  if (isset($elements['#attached'])) {
    drupal_process_attached($elements);
  }
  foreach (element_children($elements) as $key) {
    _field_collection_process_children_attached($elements[$key]);
  }
}