function swiftmailer_admin_default_form_submit in Swift Mailer 7
Form submission handler for swiftmailer_admin_default_form().
File
- includes/
pages/ swiftmailer_admin_default.inc, line 101 - An administration page which allows for configuration of the Swift Mailer library location.
Code
function swiftmailer_admin_default_form_submit($form, &$form_state) {
// Include helper functions.
require_once dirname(dirname(__FILE__)) . '/helpers/utilities.inc';
if (isset($form_state['values']['library']['path'])) {
variable_set('swiftmailer_path', swiftmailer_validate_library($form_state['values']['library']['path']));
}
}