You are here

function get_image_form_item_recursive in Node Gallery 6

Same name and namespace in other branches
  1. 6.2 node_gallery.pages.inc \get_image_form_item_recursive()
1 call to get_image_form_item_recursive()
node_gallery_image_item_edit_form in ./node_gallery.pages.inc

File

./node_gallery.pages.inc, line 308
Node gallery pages.

Code

function get_image_form_item_recursive($form, $field) {
  if ($form[$field]) {
    return $form[$field];
  }
  elseif ($children = element_children($form)) {
    foreach ($children as $child) {
      get_image_form_item_recursive($form[$child], $field);
    }
  }
  return;
}