You are here

function rules_test_rules_action_info in Rules 6

Same name and namespace in other branches
  1. 7.2 tests/rules_test.rules.inc \rules_test_rules_action_info()

Implementation of hook_rules_action_info

File

rules_test/rules_test.rules.inc, line 29
Define some conditions and actions, used by the tests

Code

function rules_test_rules_action_info() {
  return array(
    'rules_test_action_log_msg' => array(
      'label' => 'Logs a message to the rules log',
      'arguments' => array(),
      'hidden' => TRUE,
    ),
    'rules_test_change_arg' => array(
      'label' => 'Changes the argument',
      'arguments' => array(
        'rules_test' => array(
          'type' => 'rules_test',
          'label' => 'test',
        ),
      ),
      'hidden' => TRUE,
    ),
    'rules_test_add_var' => array(
      'label' => 'Adds a new variable',
      'new variables' => array(
        'rules_test' => array(
          'type' => 'rules_test',
          'label' => 'test',
        ),
      ),
      'hidden' => TRUE,
    ),
  );
}