function breadcrumb_manager_is_front_page in Breadcrumb Manager 7
Check if the page is the front page.
Parameters
string $path: The path to be checked.
Return value
bool TRUE if the current page is the front page; FALSE if otherwise.
1 call to breadcrumb_manager_is_front_page()
- breadcrumb_manager_is_excluded_path in ./
breadcrumb_manager.module - Check if the breadcrumb for the current path can be overwritten.
File
- ./
breadcrumb_manager.module, line 354 - Code for Breadcrumb Manager module.
Code
function breadcrumb_manager_is_front_page($path) {
// Use the advanced drupal_static() pattern, since this is called very often.
static $drupal_static_fast;
if (!isset($drupal_static_fast)) {
$drupal_static_fast['path_is_front_page'] =& drupal_static(__FUNCTION__);
}
$is_front_page =& $drupal_static_fast['path_is_front_page'];
if (!isset($is_front_page)) {
$is_front_page = $path == variable_get('site_frontpage', 'node');
}
return $is_front_page;
}