You are here

function _pathauto_alias_exists in Pathauto 7

Same name and namespace in other branches
  1. 5.2 pathauto.inc \_pathauto_alias_exists()
  2. 5 pathauto.module \_pathauto_alias_exists()
  3. 6.2 pathauto.inc \_pathauto_alias_exists()
  4. 6 pathauto.inc \_pathauto_alias_exists()

Check to see if there is already an alias pointing to a different item.

Parameters

$alias: A string alias.

$source: A string that is the internal path.

$langcode: A string indicating the path's language.

Return value

bool TRUE if an alias exists, FALSE if not.

Deprecated

Use path_pathauto_is_alias_reserved() instead.

File

./pathauto.inc, line 70
Miscellaneous functions for Pathauto.

Code

function _pathauto_alias_exists($alias, $source, $langcode = LANGUAGE_NONE) {
  return path_pathauto_is_alias_reserved($alias, $source, $langcode);
}