Verifies if the given path should be exclude from the breadcrumb.
Parameters
string $url: URL to be verified.
Return value
bool TRUE if should be excluded, FALSE otherwise.
1 call to _easy_breadcrumb_check_excluded_path()
- _easy_breadcrumb_build_items in ./
easy_breadcrumb.module - Helper function to generate breadcrumb items.
File
-
./
easy_breadcrumb.module, line 460
Code
function _easy_breadcrumb_check_excluded_path($url) {
// List of path to be excluded while generating segments.
$excluded_paths_arr = variable_get(EasyBreadcrumbConstants::DB_VAR_EXCLUDED_PATHS, EasyBreadcrumbConstants::defaultExcludedPaths());
$excluded = FALSE;
foreach ($excluded_paths_arr as $excluded_path) {
$exlusion_pattern = '@^' . $excluded_path . '$@';
$excluded = preg_match($exlusion_pattern, $url);
if ($excluded) {
break;
}
}
drupal_alter('easy_breadcrumb_exclude_path', $excluded, $url);
return $excluded;
}