function xmlsitemap_get_link_type_enabled_bundles in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_get_link_type_enabled_bundles()
- 7.2 xmlsitemap.module \xmlsitemap_get_link_type_enabled_bundles()
- 2.x xmlsitemap.module \xmlsitemap_get_link_type_enabled_bundles()
5 calls to xmlsitemap_get_link_type_enabled_bundles()
- xmlsitemap_get_rebuildable_link_types in ./
xmlsitemap.generate.inc - xmlsitemap_menu_xmlsitemap_index_links in xmlsitemap_menu/
xmlsitemap_menu.module - Implements hook_xmlsitemap_index_links().
- xmlsitemap_node_xmlsitemap_index_links in xmlsitemap_node/
xmlsitemap_node.module - Implements hook_xmlsitemap_index_links().
- xmlsitemap_rebuild_batch_fetch in ./
xmlsitemap.generate.inc - Batch callback; fetch and add the sitemap links for a specific entity.
- xmlsitemap_taxonomy_xmlsitemap_index_links in xmlsitemap_taxonomy/
xmlsitemap_taxonomy.module - Implements hook_xmlsitemap_index_links().
File
- ./
xmlsitemap.module, line 942 - Main file for the xmlsitemap module.
Code
function xmlsitemap_get_link_type_enabled_bundles($entity_type) {
$bundles = array();
$info = xmlsitemap_get_link_info($entity_type);
foreach ($info['bundles'] as $bundle => $bundle_info) {
$settings = xmlsitemap_link_bundle_load($entity_type, $bundle);
if (!empty($settings['status'])) {
//if (!empty($bundle_info['xmlsitemap']['status'])) {
$bundles[] = $bundle;
}
}
return $bundles;
}