Since "help" and "min_word_count" are optional when defining a node (see http://api.drupal.org/api/HEAD/function/hook_node_info ) for a node type, we should provide a default value in _node_type_set_defaults() (node.module).

This caused 4 php notices when doing a fresh drupal installation of head.

Patch attached.

CommentFileSizeAuthor
node.module_0_0.patch656 bytesJo Wouters
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me. Still applies with offset.

Blog.module yields the min_word_count notice... I haven't gotten anything in core to spit out one about help, but it's conceivable that there are contrib modules out there that don't define a help.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks.

drumm’s picture

Committed to 5.

Anonymous’s picture

Status: Fixed » Closed (fixed)