You are here

function get_image_form_value_items in Node Gallery 6

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

File

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

Code

function get_image_form_value_items($form) {
  if ($children = element_children($form)) {
    foreach ($children as $child) {

      //todo: didn't recursive;
      if ($form[$child]['#type'] == 'value' || $form[$child]['#type'] == 'hidden') {
        $value_forms[$child] = $form[$child];
      }
    }
  }
  elseif ($form['#type'] == 'value' || $form['#type'] == 'hidden') {
    $value_forms[key($form)] = $form;
  }
  return $value_forms;
}