function drupal_is_front_page

cis7 drupal_is_front_page()
cle7 drupal_is_front_page()
elmsmedia7 drupal_is_front_page()
icor7 drupal_is_front_page()
meedjum_blog7 drupal_is_front_page()
mooc7 drupal_is_front_page()

Check if the current page is the front page.

Return value

Boolean value: TRUE if the current page is the front page; FALSE if otherwise.

23 calls to drupal_is_front_page()
adaptivetheme_links in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Returns HTML for a set of links.
adaptivetheme_page_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
admin_menu_toolbar_page_build in sites/all/modules/ulmus/admin_menu/admin_menu_toolbar/admin_menu_toolbar.module
Implementation of hook_page_build().
alpha_alpha_preprocess_html in sites/all/themes/ulmus/omega/alpha/template.php
Implements hook_preprocess_html().
at_generate_html_classes in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Return an array of classes to be used for body classes in html.tpl.php

... See full list


includes/, line 284
Functions to handle paths in Drupal, including path aliasing.


function drupal_is_front_page() {
  // Use the advanced drupal_static() pattern, since this is called very often.
  static $drupal_static_fast;
  if (!isset($drupal_static_fast)) {
    $drupal_static_fast['is_front_page'] = &drupal_static(__FUNCTION__);
  $is_front_page = &$drupal_static_fast['is_front_page'];

  if (!isset($is_front_page)) {
    // As drupal_path_initialize updates $_GET['q'] with the 'site_frontpage' path,
    // we can check it against the 'site_frontpage' variable.
    $is_front_page = ($_GET['q'] == variable_get('site_frontpage', 'node'));

  return $is_front_page;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.