You are here

function linkchecker_redirect_update in Link checker 7

Same name and namespace in other branches
  1. 8 linkchecker.redirect.inc \linkchecker_redirect_update()

Implements hook_redirect_update().

1 call to linkchecker_redirect_update()
linkchecker_redirect_insert in ./linkchecker.redirect.inc
Implements hook_redirect_insert().

File

./linkchecker.redirect.inc, line 18
Redirect interface to linkchecker functionalities.

Code

function linkchecker_redirect_update($redirect) {

  // It's unknown if this is a redirect for HTTP/HTTPS or the encoded urls.
  $url_http = url($redirect->source, array(
    'absolute' => TRUE,
    $redirect->source_options,
  ));
  $url_https = url($redirect->source, array(
    'absolute' => TRUE,
    'https' => TRUE,
    $redirect->source_options,
  ));
  $urls = array(
    $url_http,
    $url_https,
    rawurldecode($url_http),
    rawurldecode($url_https),
  );
  _linkchecker_redirect_reset($urls);
}