blob: 0a19606aa51a40ba65589cc0ee3f1d9d5c1b9f3a (
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_nodeapi_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,
);
}
|