function rules_action

Returns a new rules action.

Parameters

$name: The action's name.

array $settings: The action's settings array.

Return value

RulesAction

14 calls to rules_action()
RulesActionContainer::action in includes/rules.core.inc
Adds an action to the container.
RulesIntegrationTestCase::testDataIntegration in tests/rules.test
Tests data integration.
RulesIntegrationTestCase::testEntityIntegration in tests/rules.test
Tests entity related integration.
RulesIntegrationTestCase::testTaxonomyIntegration in tests/rules.test
Tests integration for the taxonomy module.
RulesTestCase::testActionExecutionFails in tests/rules.test
Tests executing with wrong arguments.

... See full list

File

./rules.module, line 86

Code

function rules_action($name, $settings = array()) {
    return rules_plugin_factory('action', $name, $settings);
}