function xmlsitemap_process_form_link_options in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_process_form_link_options()
- 7.2 xmlsitemap.module \xmlsitemap_process_form_link_options()
- 2.x xmlsitemap.module \xmlsitemap_process_form_link_options()
1 string reference to 'xmlsitemap_process_form_link_options'
- xmlsitemap_add_form_link_options in ./
xmlsitemap.admin.inc - Add a link's XML sitemap options to the link's form.
File
- ./
xmlsitemap.module, line 1266 - Main file for the xmlsitemap module.
Code
function xmlsitemap_process_form_link_options($form, &$form_state) {
$link =& $form_state['values']['xmlsitemap'];
$fields = array(
'status' => XMLSITEMAP_STATUS_DEFAULT,
'priority' => XMLSITEMAP_PRIORITY_DEFAULT,
);
foreach ($fields as $field => $default) {
if ($link[$field] === 'default') {
$link[$field] = isset($link[$field . '_default']) ? $link[$field . '_default'] : $default;
$link[$field . '_override'] = 0;
}
else {
$link[$field . '_override'] = 1;
}
}
}