summaryrefslogtreecommitdiff
path: root/modules/node/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-22 09:10:07 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-22 09:10:07 +0000
commitf96c141f5aa99ed414eba4e0a520e5b4d9f91b76 (patch)
treeacf51de08577f41ac635a84eb812109714087e81 /modules/node/tests
parentbb930bf6cc74f88d765818e9971aeda9977ff355 (diff)
downloadbrdo-f96c141f5aa99ed414eba4e0a520e5b4d9f91b76.tar.gz
brdo-f96c141f5aa99ed414eba4e0a520e5b4d9f91b76.tar.bz2
- Patch #409750 by yched et al: overhaul and extend node build modes.
Diffstat (limited to 'modules/node/tests')
-rw-r--r--modules/node/tests/node_test.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module
index fd0fca707..dc354ff80 100644
--- a/modules/node/tests/node_test.module
+++ b/modules/node/tests/node_test.module
@@ -10,8 +10,8 @@
/**
* Implement hook_node_view().
*/
-function node_test_node_view($node, $teaser) {
- if ($node->build_mode == NODE_BUILD_RSS) {
+function node_test_node_view($node, $build_mode) {
+ if ($build_mode == 'rss') {
// Add RSS elements and namespaces when building the RSS feed.
$node->rss_elements[] = array(
'key' => 'testElement',
@@ -26,7 +26,7 @@ function node_test_node_view($node, $teaser) {
);
}
- if ($node->build_mode != NODE_BUILD_RSS) {
+ if ($build_mode != 'rss') {
// Add content that should NOT be displayed in the RSS feed.
$node->content['extra_non_feed_content'] = array(
'#markup' => '<p>' . t('Extra data that should appear everywhere except the RSS feed for node !nid.', array('!nid' => $node->nid)) . '</p>',