You are here

function path_redirect_delete in Path redirect 6

Same name and namespace in other branches
  1. 5 path_redirect.module \path_redirect_delete()

Delete a redirect.

Parameters

$rid: The ID of the redirect to delete.

1 call to path_redirect_delete()
path_redirect_delete_form_submit in ./path_redirect.admin.inc

File

./path_redirect.module, line 520

Code

function path_redirect_delete($rid, $deprecated = FALSE) {

  // @todo Remove legacy path_redirect_delete support for pathauto.
  if (is_string($rid) && is_string($deprecated)) {
    return path_redirect_delete_multiple(NULL, array(
      'source' => $rid,
      'redirect' => $deprecated,
    ));
  }
  elseif (is_array($rid) && !isset($rid['rid'])) {
    $rid = $rid['rid'];
  }
  return path_redirect_delete_multiple(array(
    $rid,
  ));
}