You are here

function xmlsitemap_link_bundle_load in XML sitemap 7.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_link_bundle_load()
  2. 6.2 xmlsitemap.module \xmlsitemap_link_bundle_load()
  3. 2.x xmlsitemap.module \xmlsitemap_link_bundle_load()

Bundle Load.

11 calls to xmlsitemap_link_bundle_load()
xmlsitemap_add_form_link_options in ./xmlsitemap.admin.inc
Add a link's XML sitemap options to the link's form.
xmlsitemap_add_link_bundle_settings in ./xmlsitemap.admin.inc
Add the link type XML sitemap options to the link type's form.
xmlsitemap_get_link_info in ./xmlsitemap.module
Returns information about supported sitemap link types.
xmlsitemap_get_link_type_enabled_bundles in ./xmlsitemap.module
Enabled Bundles.
xmlsitemap_link_bundle_access in ./xmlsitemap.module
Bundle Access.

... See full list

File

./xmlsitemap.module, line 1190
xmlsitemap XML sitemap

Code

function xmlsitemap_link_bundle_load($entity, $bundle, $load_bundle_info = TRUE) {
  $info = array(
    'entity' => $entity,
    'bundle' => $bundle,
  );
  if ($load_bundle_info) {
    $entity_info = xmlsitemap_get_link_info($entity);
    if (isset($entity_info['bundles'][$bundle])) {
      $info['info'] = $entity_info['bundles'][$bundle];
    }
  }
  $info += variable_get("xmlsitemap_settings_{$entity}_{$bundle}", array());
  $info += array(
    'status' => XMLSITEMAP_STATUS_DEFAULT,
    'priority' => XMLSITEMAP_PRIORITY_DEFAULT,
  );
  return $info;
}