You are here

function rules_action_load_node in Rules 6

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

Loads a node

Related topics

File

rules/modules/node.rules.inc, line 299
rules integration for the node module

Code

function rules_action_load_node($nid, $vid = NULL) {
  return array(
    'node_loaded' => node_load($nid, $vid ? $vid : NULL),
  );
}