function swiftmailer_admin_default_form_validate in Swift Mailer 7
Form validation handler for swiftmailer_admin_default_form().
File
- includes/
pages/ swiftmailer_admin_default.inc, line 87 - An administration page which allows for configuration of the Swift Mailer library location.
Code
function swiftmailer_admin_default_form_validate($form, &$form_state) {
// Include helper functions.
require_once dirname(dirname(__FILE__)) . '/helpers/utilities.inc';
if (!swiftmailer_validate_library($form_state['values']['library']['path'])) {
form_set_error('library][path', t('The provided path does not contain the Swift Mailer library.'));
}
}