hook_node_info is returning values for Drupal 4.7 API

joachim - July 22, 2008 - 10:19
Project:Module Builder
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

The generated hook_node_info looks like this:

/**
* Implementation of hook_node_info().
*/
function mymodule_node_info() {
  return array('mymodule' => array('name' => t('readable name'), 'base' => 'mymodule'));
}

'base' isn't defined as a key for the return array in either D5 or D6, but it's in the D4.7 API.

#1

joachim - August 29, 2008 - 08:22

Weird. I'm getting the definitions for D6 on D5, and you're getting those for D4.7...
Might be a duplicate of this: http://drupal.org/node/267197

#2

joachim - August 30, 2008 - 11:58
Status:active» duplicate

Marking as dupe. Please reopen if not.

 
 

Drupal is a registered trademark of Dries Buytaert.