function _path_alias_xt_get_menu_item in Extended Path Aliases 7
Same name and namespace in other branches
- 6 path_alias_xt.module \_path_alias_xt_get_menu_item()
Returns FALSE if the supplied path is NOT in the menu_router table.
Parameters
string $path: The path.
Return value
bool The supplied path or FALSE if it was not found in the router table
1 call to _path_alias_xt_get_menu_item()
- path_alias_xt_url_inbound_alter in ./
path_alias_xt.module - Implements hook_url_inbound_alter().
File
- ./
path_alias_xt.module, line 157 - Extended Path Aliases.
Code
function _path_alias_xt_get_menu_item($path) {
return db_query("SELECT path FROM {menu_router} WHERE path = :path", array(
':path' => $path,
))
->fetchField();
}