[documentation] [Documentation bug] Typo error in API reference node_example_node_info?
jdevries
drupal-docs at drupal.org
Wed Jan 17 22:52:40 UTC 2007
Issue status update for
http://drupal.org/node/110314
Post a follow up:
http://drupal.org/project/comments/add/110314
Project: Documentation
Version: <none>
Component: Developer Guide
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: jdevries
Updated by: jdevries
Status: active
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 [1]):
<?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?
[1] http://api.drupal.org/api/HEAD/function/node_example_node_info
jdevries
More information about the documentation
mailing list