You are here

function l10n_update_admin_settings_form_validate in Localization update 6

Same name and namespace in other branches
  1. 7.2 l10n_update.admin.inc \l10n_update_admin_settings_form_validate()
  2. 7 l10n_update.admin.inc \l10n_update_admin_settings_form_validate()

Additional validation handler for update settings.

Check for existing files directory and creates one when required.

File

./l10n_update.admin.inc, line 191
Admin settings and update page.

Code

function l10n_update_admin_settings_form_validate($form, &$form_state) {
  $form_values = $form_state['values'];
  if (!empty($form_values['l10n_update_download_store'])) {
    file_check_directory($form_values['l10n_update_download_store'], FILE_CREATE_DIRECTORY, 'l10n_update_download_store');
  }
}