You are here

function path_rules_action_info in Rules 6

Implementation of hook_rules_action_info().

Related topics

File

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

Code

function path_rules_action_info() {
  return array(
    'rules_action_path_alias' => array(
      'label' => t('Create or delete an URL alias'),
      'module' => 'Path',
      'eval input' => array(
        'src',
        'dst',
      ),
    ),
    'rules_action_node_path_alias' => array(
      'label' => t("Create or delete a content's URL alias"),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Content'),
        ),
      ),
      'module' => 'Path',
      'eval input' => array(
        'dst',
      ),
    ),
  );
}