Per request submitted as an issue. I was going through the api documentation and the sample node code, when I came across this piece of code for the hook_info sample (link):
<?php
function node_example_node_info() {
return array(
'node_example' => array(
'name' => t('example node'),
'base' => 'node_example',
'description' => t("This is an example node type with a few fields.")
)
);
}
?>
The api itself, as well as the text mention a module value being required. The sample code mentions a base value instead. Is this a typo in the sample code?
Comments
Comment #1
heine commentedComment #2
heine commentedAttached patch should complete the node example update.
Comment #3
webchickCommitted, thanks!!
Comment #4
(not verified) commented