function feeds_ui_create_form_validate in Feeds 7
Same name and namespace in other branches
- 8.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_create_form_validate()
- 6 feeds_ui/feeds_ui.admin.inc \feeds_ui_create_form_validate()
- 7.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_create_form_validate()
Validation handler for feeds_build_create_form().
File
- feeds_ui/
feeds_ui.admin.inc, line 187 - Contains all page callbacks, forms and theming functions for Feeds administrative pages.
Code
function feeds_ui_create_form_validate($form, &$form_state) {
ctools_include('export');
$importer = feeds_importer($form_state['values']['id']);
if (ctools_export_load_object('feeds_importer', 'conditions', array(
'id' => $form_state['values']['id'],
))) {
form_set_error('id', t('Id is taken.'));
}
$importer
->configFormValidate($form_state['values']);
}