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?

CommentFileSizeAuthor
#2 node_example_update.patch1.75 KBheine

Comments

heine’s picture

Title: Typo error in API reference node_example_node_info? » Complete conversion of node_example to Drupal 5
Component: Developer Guide » Documentation in CVS
heine’s picture

Status: Active » Needs review
StatusFileSize
new1.75 KB

Attached patch should complete the node example update.

webchick’s picture

Status: Needs review » Fixed

Committed, thanks!!

Anonymous’s picture

Status: Fixed » Closed (fixed)