summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-18 16:22:13 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-18 16:22:13 +0000
commit1963021d120657347844145953c7a2169c1ede82 (patch)
treee0cfd6f756755f312c3bbfbc85ffe5b51051d688
parent61cc35f2b0820733ff40a9775da45fa93a078584 (diff)
downloadbrdo-1963021d120657347844145953c7a2169c1ede82.tar.gz
brdo-1963021d120657347844145953c7a2169c1ede82.tar.bz2
- Patch #269443 by dvessel: add nid to node template suggestion.
-rw-r--r--includes/theme.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 142226b85..5a7ac3722 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1965,7 +1965,8 @@ function template_preprocess_node(&$variables) {
$variables['picture'] = '';
}
// Clean up name so there are no underscores.
- $variables['template_files'][] = 'node-' . $node->type;
+ $variables['template_files'][] = 'node-' . str_replace('_', '-', $node->type);
+ $variables['template_files'][] = 'node-' . $node->nid;
}
/**