function panels_common_edit_argument_form_validate in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/common-context.inc \panels_common_edit_argument_form_validate()
validate an argument edited/added via ajax
File
- includes/
common.inc, line 1409 - Functions used by more than one panels client module.
Code
function panels_common_edit_argument_form_validate($form_id, $form_values, $form) {
$argument = $form_values['arg'];
if (isset($argument['settings form validate']) && function_exists($argument['settings form validate'])) {
$argument['settings form validate']($form['argument']['argument_settings'], $form_values['argument']['argument_settings']);
}
}