function xmlsitemap_link_bundle_settings_save in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_link_bundle_settings_save()
- 7.2 xmlsitemap.module \xmlsitemap_link_bundle_settings_save()
- 2.x xmlsitemap.module \xmlsitemap_link_bundle_settings_save()
5 calls to xmlsitemap_link_bundle_settings_save()
- XMLSitemapNodeFunctionalTest::setUp in xmlsitemap_node/
xmlsitemap_node.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapUserFunctionalTest::setUp in xmlsitemap_user/
xmlsitemap_user.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- xmlsitemap_link_bundle_rename in ./
xmlsitemap.module - xmlsitemap_link_bundle_settings_form_submit in ./
xmlsitemap.module - xmlsitemap_taxonomy_taxonomy in xmlsitemap_taxonomy/
xmlsitemap_taxonomy.module - Implements hook_taxonomy().
File
- ./
xmlsitemap.module, line 974 - Main file for the xmlsitemap module.
Code
function xmlsitemap_link_bundle_settings_save($entity, $bundle, array $settings, $update_links = TRUE) {
if ($update_links) {
$old_settings = xmlsitemap_link_bundle_load($entity, $bundle);
if ($settings['status'] != $old_settings['status']) {
xmlsitemap_link_update_multiple(array(
'status' => $settings['status'],
), array(
'type' => $entity,
'subtype' => $bundle,
'status_override' => 0,
));
}
if ($settings['priority'] != $old_settings['priority']) {
xmlsitemap_link_update_multiple(array(
'priority' => $settings['priority'],
), array(
'type' => $entity,
'subtype' => $bundle,
'priority_override' => 0,
));
}
}
variable_set("xmlsitemap_settings_{$entity}_{$bundle}", $settings);
cache_clear_all('xmlsitemap:link_info:', 'cache', TRUE);
//xmlsitemap_get_link_info(NULL, TRUE);
}