You are here

function feeds_form_validate in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_form_validate()
  2. 6 includes/FeedsConfigurable.inc \feeds_form_validate()
  3. 7.2 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 245
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']);
  }
}