You are here

function xmlsitemap_get_bundle_path in XML sitemap 7.2

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

Get Bundle.

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
Link bundle settings form.

File

./xmlsitemap.module, line 1251
xmlsitemap XML sitemap

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;
  }
}