Commit 32bae262 authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: Put xmlsitemap_process_form_link_options()...

Issue #2249723 by andrei.dincu: Put xmlsitemap_process_form_link_options() before all other action callbacks in entity form alter
parent e210fc79
......@@ -1482,9 +1482,9 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
'#value' => $link['priority_override'],
);
$form['actions']['submit']['#submit'][] = 'xmlsitemap_process_form_link_options';
array_unshift($form['actions']['submit']['#submit'], 'xmlsitemap_process_form_link_options');
if (isset($form['actions']['publish'])) {
$form['actions']['publish']['#submit'][] = 'xmlsitemap_process_form_link_options';
array_unshift($form['actions']['publish']['#submit'], 'xmlsitemap_process_form_link_options');
}
// Other persistent fields.
//$form['xmlsitemap']['lastmod'] = array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment