function xmlsitemap_sitemap_list_form_validate in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.admin.inc \xmlsitemap_sitemap_list_form_validate()
Validate xmlsitemap_sitemap_list_form submissions.
File
- ./
xmlsitemap.admin.inc, line 135 - Administrative page callbacks for the xmlsitemap module.
Code
function xmlsitemap_sitemap_list_form_validate($form, &$form_state) {
$form_state['values']['sitemaps'] = array_filter($form_state['values']['sitemaps']);
// Error if there are no items to select.
if (!count($form_state['values']['sitemaps'])) {
form_set_error('', t('No sitemaps selected.'));
}
}