You are here

function path_rules_condition_info in Rules 6

Implementation of hook_rules_condition_info().

Related topics

File

rules/modules/path.rules.inc, line 14
Rules integration for the path module

Code

function path_rules_condition_info() {
  return array(
    'rules_condition_url_has_alias' => array(
      'label' => t('Path has alias(es)'),
      'module' => 'Path',
      'eval input' => array(
        'src',
      ),
    ),
    'rules_condition_alias_exists' => array(
      'label' => t('URL alias exists'),
      'module' => 'Path',
      'eval input' => array(
        'dst',
      ),
    ),
  );
}