You are here

function _easy_social_page_ignore in Easy Social 7.2

Returns whether Easy Social should be ignored in the current page.

Return value

boolean

1 call to _easy_social_page_ignore()
_easy_social_render_widgets in ./easy_social.module
Return an array of rendered Easy Social Widgets

File

./easy_social.module, line 708
Easy social module.

Code

function _easy_social_page_ignore() {
  $urls_ignored = variable_get_value('easy_social_ignore_paths');
  $page_match = FALSE;
  $path = drupal_get_path_alias($_GET['q']);

  // Compare with the internal and path alias (if any).
  $page_match = drupal_match_path($path, $urls_ignored);
  if ($path != $_GET['q']) {
    $page_match = $page_match || drupal_match_path($_GET['q'], $urls_ignored);
  }
  return $page_match;
}