The implementation of hook_form_alter in node_widget.form.inc fires for all forms, and calls node_widget_get_fields(). That function looks at $form['type'] which may note be set, causing PHP notices. It also runs through a loop un-necessarily. causing performance problems. Patch attached which fixes this.

CommentFileSizeAuthor
node_widget.patch873 byteslambic