You are here

function example_node_info in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/tests/old/samples/example.module \example_node_info()

Implementation of hook_node_info().

Use case 1: returns array directly.

File

coder_upgrade/tests/old/samples/example.module, line 2069

Code

function example_node_info() {
  return array(
    'blog' => array(
      'name' => t('Blog entry'),
      'module' => 'blog',
      'description' => t('A <em>blog entry</em> is a single post to an online journal.'),
    ),
    "example_item" => array(
      "name" => t('Example item'),
      "module" => 'node',
      "description" => 'Test the node to node_content upgrade.',
      "title_label" => t('Example item'),
      "body_label" => t('Description'),
    ),
  );
}