path_redirect_load($rid = NULL, $from = NULL)
contributions/path_redirect/path_redirect.module, line 146
Retrieve the specified URL redirect
<?php
function path_redirect_load($rid = NULL, $from = NULL) {
if (!empty($rid)) {
$result = db_fetch_array(db_query("SELECT rid, path, redirect, query, fragment, type FROM {path_redirect} WHERE rid = %d", $rid));
}
else if (!empty($from)) {
$result = db_fetch_array(db_query("SELECT rid, path, redirect, query, fragment, type FROM {path_redirect} WHERE path = '%s'", $from));
}
return $result;
}
?>