You are here

function _linkchecker_is_internal_url in Link checker 6.2

Same name and namespace in other branches
  1. 7 linkchecker.pages.inc \_linkchecker_is_internal_url()
1 call to _linkchecker_is_internal_url()
_linkchecker_report_page in includes/linkchecker.pages.inc

File

includes/linkchecker.pages.inc, line 249
User page callbacks for the linkchecker module.

Code

function _linkchecker_is_internal_url(&$link) {
  global $base_url;
  if (strpos($link->url, $base_url) === 0) {
    $link->internal = trim(substr($link->url, strlen($base_url)), " \t\r\n\0\\/");
    return TRUE;
  }
}