function ctools_export_ui_edit_item_wizard_form_validate
Validate handler for ctools_export_ui_edit_item_wizard_form.
File
-
plugins/
export_ui/ ctools_export_ui.class.php, line 1494
Code
function ctools_export_ui_edit_item_wizard_form_validate(&$form, &$form_state) {
$method = 'edit_form_' . $form_state['step'] . '_validate';
if (!method_exists($form_state['object'], $method)) {
$method = 'edit_form_validate';
}
$form_state['object']->{$method}($form, $form_state);
// Additionally, if there were no errors from that, and we're finishing,
// perform a final validate to make sure everything is ok.
if (isset($form_state['clicked_button']['#wizard type']) && $form_state['clicked_button']['#wizard type'] == 'finish' && !form_get_errors()) {
$form_state['object']->edit_finish_validate($form, $form_state);
}
}