1 redirect.module | redirect_load($rid, $reset = FALSE) |
Load an URL redirect from the database.
Parameters
$rid: The URL redirect ID.
$reset: Whether to reset the redirect_load_multiple() cache.
Return value
Redirect|FALSE: An URL redirect object, or FALSE if loading failed.
Related topics
File
- core/
modules/ redirect/ redirect.module, line 420
Code
function redirect_load($rid, $reset = FALSE) {
$redirects = redirect_load_multiple(array($rid), array(), $reset);
return !empty($redirects) ? reset($redirects) : FALSE;
}