summaryrefslogtreecommitdiff
path: root/modules/node/node_test.module
blob: d42172b6b58e7266c26dcf799bfeca98654b6aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
// $Id$

/**
 * @file
 * Dummy module implementing node related hooks to test API interaction with
 * the Node module.
 */

/**
 * When the module is enabled, text will be added to all nodes in all build modes.
 */
function node_test_node_view($node, $teaser) {
  $node->content['node_test_extra_field'] = array(
    '#markup' => '<p>' . t('Extra test data added to node !nid.', array('!nid' => $node->nid)) . '</p>',
    '#weight' => 10,
  );
}