You are here

function patterns_utils_is_public_page in Patterns 7.2

Same name and namespace in other branches
  1. 7 includes/utils.inc \patterns_utils_is_public_page()

Checks whether the current page is the public patterns page

Return value

Bool TRUE, if the current page is the public patterns page

2 calls to patterns_utils_is_public_page()
patterns_get_patterns_links in theme/common.inc
theme_patterns_list in theme/theme.inc
Theme a list of patterns into separated fieldset ordered by category

File

includes/utils.inc, line 206
Collectiion of general purpose functions.

Code

function patterns_utils_is_public_page() {
  $f = variable_get('site_frontpage', '');
  $p = variable_get(PATTERNS_PUBLIC_URL, '');
  if ($f == $p) {
    return drupal_is_front_page();
  }
  return request_path() == $p ? TRUE : FALSE;
}