hook_node_info() changes slip by in 4.7 --> 5.x
marcp - May 19, 2007 - 02:39
| Project: | Coder |
| Version: | 5.x-2.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
Coder didn't catch this one for me during a 4.7.x to 5.x upgrade: http://drupal.org/node/64279#node-types
The 4.7.x version looked something like:
function game_node_info() {
return array(
'game' => array(
'name' => t('Game'),
'base' => 'game'
)
);
}and the 5.x version needs to look something like:
function game_node_info() {
return array(
'game' => array(
'name' => t('Game'),
'module' => 'game',
'description' => t('Create a new game')
)
);
}...in order for hook_load() to get called for the node type.
PS - Coder rocks!

#1
Thanks for the "rocks", but unless you provide a patch, I probably won't be implementing this. The 4.7 -> 5.x review isn't perfect. The 5.x -> 6.x review is much better. If you find anything in the 5.x -> 6.x review that isn't working, I'll definitely try to fix that (even if you don't offer a patch).