You are here

function custom_breadcrumbs_exclude_path in Custom Breadcrumbs 6.2

Same name and namespace in other branches
  1. 7.2 custom_breadcrumbs.module \custom_breadcrumbs_exclude_path()

Determines if the current path is in the excluded list.

Return value

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_pre_render in custom_breadcrumbs_views/custom_breadcrumbs_views.module
Implements hook_views_pre_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 1161
Provide custom breadcrumbs for node-type pages and base functionality for submodules to add custom breadcrumbs for other types of pages.

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($_REQUEST['q'], trim($path))) {
          return TRUE;
        }
      }
    }
  }
  return FALSE;
}