$content_type, // No default, must pass a content type id name 'name' => $content_name, // No default, must pass a content type display name 'module' => 'node', 'description' => '', 'custom' => TRUE, 'modified' => TRUE, 'has_title' => TRUE, 'has_body' => TRUE, 'title_label' => 'Title', 'body_label' => '', 'locked' => FALSE, 'min_word_count' => '0', 'orig_type' => '', 'help' => '', ); $type = array_merge($default, $properties); $type = (object)_node_type_set_defaults($type); node_type_save($type); }