function node_patterns_export_all_nodes in Patterns 7.2
Same name and namespace in other branches
- 7 patterns_components/components/node.inc \node_patterns_export_all_nodes()
1 string reference to 'node_patterns_export_all_nodes'
- node_patterns in patterns_components/
components/ node.inc
File
- patterns_components/
components/ node.inc, line 71
Code
function node_patterns_export_all_nodes($args = NULL, &$result = NULL) {
// Load nodes.
$nodes = node_load_multiple(FALSE);
$result = array();
foreach ($nodes as $node) {
$node = (array) $node;
$data = array(
'tag' => 'node',
);
$data = array_merge($data, $node);
$action = array(
PATTERNS_CREATE => $data,
);
array_push($result, $action);
}
return $result;
}