How to create and save a node programmatically
An example of how to create and save a node programmatically.
/**
* Creates a node
*/
function mymodule_create_task($task) {
global $user;
$node = new stdClass();
$node->type = "task";
$node->uid = $user->uid;
$node->title = check_plain($task['title']);
//Strip tags without
$allowed_tags = "