function get_image_form_value_items in Node Gallery 6.2
Same name and namespace in other branches
- 6 node_gallery.pages.inc \get_image_form_value_items()
1 call to get_image_form_value_items()
File
- ./
node_gallery.pages.inc, line 470 - 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;
}