function feeds_form_validate in Feeds 6
Same name and namespace in other branches
- 8.2 feeds.module \feeds_form_validate()
- 7.2 includes/FeedsConfigurable.inc \feeds_form_validate()
- 7 includes/FeedsConfigurable.inc \feeds_form_validate()
Validation handler for feeds_form().
1 string reference to 'feeds_form_validate'
- feeds_form in includes/
FeedsConfigurable.inc - Config form callback. Don't call directly, but use feeds_get_form($configurable, 'method') instead.
File
- includes/
FeedsConfigurable.inc, line 254 - FeedsConfigurable and helper functions.
Code
function feeds_form_validate($form, &$form_state) {
$validate_method = $form['#feeds_form_method'] . 'Validate';
if (method_exists($form['#configurable'], $validate_method)) {
$form['#configurable']
->{$validate_method}($form_state['values']);
}
}