You are here

function rules_condition_path_alias_exists in Rules 7.2

Condition implementation: Check if the URL alias exists.

Related topics

1 string reference to 'rules_condition_path_alias_exists'
rules_path_condition_info in modules/path.rules.inc
Implements hook_rules_condition_info() on behalf of the path module.

File

modules/path.eval.inc, line 73
Contains rules integration for the path module needed during evaluation.

Code

function rules_condition_path_alias_exists($alias, $langcode = LANGUAGE_NONE) {
  return (bool) drupal_lookup_path('source', $alias, $langcode);
}