diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-28 07:34:30 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-28 07:34:30 +0000 |
commit | f16eccbe9d0199385e0334b1692d6a1ec7225917 (patch) | |
tree | d59bf23172fe91c2f7017c39250a5b611d6279c1 /modules/node/node_test.module | |
parent | 8fa274af765bb74a520fdb4211321ee489d9fec1 (diff) | |
download | brdo-f16eccbe9d0199385e0334b1692d6a1ec7225917.tar.gz brdo-f16eccbe9d0199385e0334b1692d6a1ec7225917.tar.bz2 |
#365183 by Eaton: Fix for node_feed() silently discards ->content (with tests).
Diffstat (limited to 'modules/node/node_test.module')
-rw-r--r-- | modules/node/node_test.module | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/node/node_test.module b/modules/node/node_test.module new file mode 100644 index 000000000..0a19606aa --- /dev/null +++ b/modules/node/node_test.module @@ -0,0 +1,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, + ); +} |