You are here

function feeds_tests_create_node in Feeds 7.2

Rules action callback: creates a node.

1 string reference to 'feeds_tests_create_node'
FeedsRulesTest::createTestRule in tests/feeds_rules.test
Creates a test rule.

File

tests/feeds_tests.rules.inc, line 34
Includes any rules integration provided by the module.

Code

function feeds_tests_create_node() {
  $node = new stdClass();
  $node->title = 'Test node';
  $node->type = 'page';
  $node->status = 1;
  $node->uid = 0;
  node_object_prepare($node);
  node_save($node);
}