By jdevries on
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
...
Please file an issue for this so it can be tracked and if necessary corrected.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Done
Done.
_______________
Drupal rookie (but working on it...)
Links that I found handy | IBM