function custom_breadcrumbs_exclude_path in Custom Breadcrumbs 7.2
Same name and namespace in other branches
- 6.2 custom_breadcrumbs.module \custom_breadcrumbs_exclude_path()
Determines if the current path is in the excluded list.
Return value
bool TRUE if the current path is on the custom breadcrumbs excluded path list, FALSE otherwise.
5 calls to custom_breadcrumbs_exclude_path()
- custom_breadcrumbs_paths_preprocess_page in custom_breadcrumbs_paths/
custom_breadcrumbs_paths.module - Implements hook_preprocess_page().
- custom_breadcrumbs_preprocess_page in ./
custom_breadcrumbs.module - Implements hook_preprocess_page().
- custom_breadcrumbs_set_breadcrumb in ./
custom_breadcrumbs.module - Sets the custom breadcrumb.
- custom_breadcrumbs_views_views_post_render in custom_breadcrumbs_views/
custom_breadcrumbs_views.module - Implements hook_views_post_render().
- _custom_breadcrumbs_taxonomy_set_breadcrumb in custom_breadcrumbs_taxonomy/
custom_breadcrumbs_taxonomy.inc - Sets the breadcrumb using a node's taxonomy.
File
- ./
custom_breadcrumbs.module, line 1318 - Main file for the Custom breadcrumbs.
Code
function custom_breadcrumbs_exclude_path() {
static $excluded;
if (variable_get('custom_breadcrumbs_use_exclude_list', FALSE)) {
if (!isset($excluded)) {
$excluded = explode(',', variable_get('custom_breadcrumbs_exclude_list', ''));
}
if (!empty($excluded)) {
module_load_include('inc', 'custom_breadcrumbs', 'custom_breadcrumbs_common');
foreach ($excluded as $path) {
if (_custom_breadcrumbs_match_path($_GET['q'], trim($path))) {
return TRUE;
}
}
}
}
return FALSE;
}