Book outline in custom form
I got it to work! My issue was that $nid = $node-&gt;nid ='nid' should have been set to $nid = $node-&gt;nid ='new'. 

I also added module_load_include('inc', 'book', 'book.pages'); to call the function book_outline_form();