Active
Project:
Content Distribution
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2009 at 23:09 UTC
Updated:
10 Feb 2010 at 22:17 UTC
I'm sure core node module has a way of doing this to get a node object from form values that's nicer than this:
//convert returned array in to a proper object
if ($result) {
$node = new stdClass();
foreach ($result as $k => $v) {
$node->$k = $v;
}
return $node;
} else {
return false;
}
Mostly a note to self ;)
Comments
Comment #1
joachim commentedhuh.