Define a new node type with has_label FALSE:

    'vub_question' => array(
      'type'         => 'vub_question',
      'name'         => $t('Question'),
      'base'         => 'node_content',
      'description'  => $t('A <em>question</em> defines a quandary that begs for users to answer.'),
      'has_title'    => FALSE,
      'body_label'   => $t('Question'),
    ),

Create a node of this type.

Notice: Undefined property: stdClass::$title in template_preprocess_node() (line 1368 of node.module).

Comments

morbus iff’s picture

Notice: Undefined property: stdClass::$title in node_build_content() (line 1252 node.module) too.

morbus iff’s picture

Notice: Undefined property: stdClass::$title in node_admin_nodes() (line 485 of node.admin.inc).

dpovshed’s picture

Assigned: Unassigned » dpovshed
Status: Active » Closed (cannot reproduce)

Hi Morbus,

I took a look at the submitted bug with the current 7.x-dev version. I assumed that in your subject you referred to 'has_title' not to 'has_label'.

At the moment all $node objects have empty string as a title, if they created with has_title=FALSE.

So in all three functions you mentioned no warnings created.

Bug has been fixed by natural evolution of Drupal 7.x :)