You are here

function xmlsitemap_settings_sitemap_validate in XML sitemap 5

Validate site map settings form.

Related topics

File

./xmlsitemap.module, line 118
Creates a site map compatible with the sitemaps.org schema.

Code

function xmlsitemap_settings_sitemap_validate($form_id, $form_values) {
  if ($form_values['xmlsitemap_chunk_size'] > 50000) {
    form_set_error('xmlsitemap_chunk_size', t('Cannot send more than 50,000 links at one time.'));
  }
}