function easy_breadcrumb_init in Easy Breadcrumb 6
Same name and namespace in other branches
- 7.2 easy_breadcrumb.module \easy_breadcrumb_init()
- 7 easy_breadcrumb.module \easy_breadcrumb_init()
Implements hook_init().
File
- ./
easy_breadcrumb.module, line 28 - The Easy Breadcrumb module provides a block to be embedded in any page, typically at some place near the page's header. Easy Breadcrumb uses the URL (path alias) and the current page's title (when available) to obtain the breadcrumb's…
Code
function easy_breadcrumb_init() {
require_once 'includes/EasyBreadcrumbConstants.inc';
$disable_drupal_default_breadcrumb = variable_get(EasyBreadcrumbConstants::DB_VAR_DISABLE_DEFAULT_DRUPAL_BREADCRUMB, TRUE);
if ($disable_drupal_default_breadcrumb) {
// Sets the Drupal's default breadcrumb as an empty array to disable it.
drupal_set_breadcrumb(array());
}
}