1 simpletest_example_test.module | simpletest_example_test_node_view($node, $view_mode, $langcode) |
Implements hook_node_view().
We'll just add some content to nodes of the type we like.
Related topics
File
- modules/
examples/ simpletest_example/ tests/ simpletest_example_test/ simpletest_example_test.module, line 23 - Implements simpletest_example_test module.
Code
function simpletest_example_test_node_view($node, $view_mode, $langcode) {
if ($node->type == 'simpletest_example') {
$node->content['simpletest_example_test_section'] = array(
'#markup' => t('The test module did its thing.'),
'#weight' => -99,
);
}
}