I was getting error messages like notice: Undefined property: stdClass::$title_label when installing a module I was working on, even though I had defined 'has_label' => FALSE in my hook_node_info().

node_type_save() already accounts for a missing body_label. This patch accounts for a missing title_label.

CommentFileSizeAuthor
title_label_patch.diff1.24 KBdavideads

Comments

davideads’s picture

Title: node_type_save checks for empty title_label » node_type_save doesn't handle empty title_label correctly.

Mistitled. Sorry about that.

dave reid’s picture

Status: Needs review » Postponed (maintainer needs more info)

From http://api.drupal.org/api/function/hook_node_info/6 it looks like you're supposed to use 'has_title' => FALSE.

dave reid’s picture

Did you get this issue fixed?

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closing this issue because of a lack of activity.