You are here

function rules_action_load_node in Rules 7.2

Same name and namespace in other branches
  1. 6 rules/modules/node.rules.inc \rules_action_load_node()

Loads a node.

File

tests/rules_test.test.inc, line 47
Include file for testing file inclusion.

Code

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