function _pathauto_alias_exists in Pathauto 5
Same name and namespace in other branches
- 5.2 pathauto.inc \_pathauto_alias_exists()
- 6.2 pathauto.inc \_pathauto_alias_exists()
- 6 pathauto.inc \_pathauto_alias_exists()
- 7 pathauto.inc \_pathauto_alias_exists()
1 call to _pathauto_alias_exists()
- pathauto_create_alias in ./
pathauto.module - Apply patterns to create an alias
File
- ./
pathauto.module, line 212
Code
function _pathauto_alias_exists($alias, $src) {
return db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE dst = '%s' AND src != '%s'", $alias, $src));
}