function s3fs_settings_validate in S3 File System 7.3
Same name and namespace in other branches
- 7 s3fs.admin.inc \s3fs_settings_validate()
- 7.2 s3fs.admin.inc \s3fs_settings_validate()
Validates the values on the admin form.
File
- ./
s3fs.admin.inc, line 433 - Administration form setup for S3 File System.
Code
function s3fs_settings_validate($form, &$form_state) {
$config_from_form = _s3fs_convert_form_state_to_config($form_state);
// Get all the saved settings from s3fs_get_config(), then override them with the config from the form.
$config = array_merge(_s3fs_get_config(), $config_from_form);
_s3fs_validate_config($config);
}