You are here

function get_image_form_item_recursive in Node Gallery 6.2

Same name and namespace in other branches
  1. 6 node_gallery.pages.inc \get_image_form_item_recursive()

File

./node_gallery.pages.inc, line 458
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;
}