You are here

function xmlsitemap_get_bundle_path in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_get_bundle_path()
  2. 7.2 xmlsitemap.module \xmlsitemap_get_bundle_path()
2 calls to xmlsitemap_get_bundle_path()
xmlsitemap_add_form_link_options in ./xmlsitemap.admin.inc
Add a link's XML sitemap options to the link's form.
xmlsitemap_link_bundle_settings_form in ./xmlsitemap.admin.inc

File

./xmlsitemap.module, line 1069
Main file for the xmlsitemap module.

Code

function xmlsitemap_get_bundle_path($entity, $bundle) {
  $info = xmlsitemap_get_link_info($entity);
  if (!empty($info['bundles'][$bundle]['admin']['real path'])) {
    return $info['bundles'][$bundle]['admin']['real path'];
  }
  elseif (!empty($info['bundles'][$bundle]['admin']['path'])) {
    return $info['bundles'][$bundle]['admin']['path'];
  }
  else {
    return FALSE;
  }
}