You are here

function xmlsitemap_tools_submit in XML sitemap 6

Submit the tools form.

1 string reference to 'xmlsitemap_tools_submit'
xmlsitemap_tools in ./xmlsitemap.admin.inc
Form builder; return the tools form.

File

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

Code

function xmlsitemap_tools_submit($form, &$form_state) {
  $operations = module_invoke_all('xmlsitemap_operations');
  $operation = $operations[$form_state['values']['operation']];
  $function = $operation['callback'];
  if (isset($operation['callback arguments'])) {
    call_user_func_array($function, $operation['callback arguments']);
  }
  else {
    call_user_func($function, NULL);
  }
  $form_state['redirect'] = 'admin/settings/xmlsitemap/tools';
}