function panels_ct_pane_validate_form in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_ct_pane_validate_form()
Call any add/edit validators defined by the content type.
Parameters
$type: The content type. May be the name or an already loaded content type object.
$form: The actual Forms API form that is being validated.
$form_values: The actual Forms API values being validated.
string $op: Either 'add' or 'edit' depending on the operation being performed.
See also
panels_content_config_form_validate()
Related topics
1 call to panels_ct_pane_validate_form()
- panels_content_config_form_validate in includes/
display-edit.inc - FAPI validator for panels_content_config_form().
File
- includes/
plugins.inc, line 381 - plugins.inc
Code
function panels_ct_pane_validate_form($content_type, $form, &$form_values, $op) {
if ($function = panels_plugin_get_function('content_types', $content_type, "{$op} validate callback")) {
return $function($form, $form_values);
}
}