[documentation] [Documentation bug] Complete conversion of node_example to Drupal 5
Heine
drupal-docs at drupal.org
Thu Jan 18 15:31:02 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: Documentation in CVS
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: jdevries
Updated by: Heine
-Status: active
+Status: patch (code needs review)
Attachment: http://drupal.org/files/issues/node_example_update.patch (1.75 KB)
Attached patch should complete the node example update.
Heine
Previous comments:
------------------------------------------------------------------------
Wed, 17 Jan 2007 22:52:40 +0000 : jdevries
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
More information about the documentation
mailing list