function node_gallery_manage_images_validate in Node Gallery 6.3
1 string reference to 'node_gallery_manage_images_validate'
- node_gallery_manage_images_form in ./
node_gallery.pages.inc - Displays the content for our "Manage Images" tab, which is a VBO view.
File
- ./
node_gallery.pages.inc, line 329 - Handles displaying of Node gallery pages.
Code
function node_gallery_manage_images_validate($form, &$form_state) {
if (!empty($form_state['values']['images'])) {
foreach ($form_state['values']['images'] as $nid => $image_form_state) {
// Quick hack to pass og_nodeapi validate
if (module_exists('og')) {
$image_form_state['edit_form']['og_groups'] = $form['images'][$nid]['edit_form']['#node']->og_groups;
}
node_validate($image_form_state['edit_form'], $form['images'][$nid]['edit_form']);
}
}
}