Returns the path ID.
$alias: A string containing an aliased path.
int Integer representing the path ID.
function getPID($alias) {
return db_query("SELECT pid FROM {url_alias} WHERE alias = :alias", array(
':alias' => $alias,
))
->fetchField();
}