You are here

function rules_condition_path_has_alias in Rules 7.2

Condition implementation: Check if the path has an alias.

Related topics

1 string reference to 'rules_condition_path_has_alias'
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 66
Contains rules integration for the path module needed during evaluation.

Code

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