You are here

function xmlsitemap_settings_validate in XML sitemap 6

Validate the sitemap settings form.

1 string reference to 'xmlsitemap_settings_validate'
xmlsitemap_settings in ./xmlsitemap.admin.inc
Form builder; return the sitemap settings form.

File

./xmlsitemap.admin.inc, line 90
XML sitemap settings UI.

Code

function xmlsitemap_settings_validate($form, &$form_state) {
  $directory = $form_state['values']['xmlsitemap_cache_directory'];
  file_check_directory($directory, FILE_CREATE_DIRECTORY, 'xmlsitemap_cache_directory');
  $form_state['values']['xmlsitemap_cache_directory'] = $directory;
}