diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-06-18 16:22:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-06-18 16:22:13 +0000 |
commit | 1963021d120657347844145953c7a2169c1ede82 (patch) | |
tree | e0cfd6f756755f312c3bbfbc85ffe5b51051d688 | |
parent | 61cc35f2b0820733ff40a9775da45fa93a078584 (diff) | |
download | brdo-1963021d120657347844145953c7a2169c1ede82.tar.gz brdo-1963021d120657347844145953c7a2169c1ede82.tar.bz2 |
- Patch #269443 by dvessel: add nid to node template suggestion.
-rw-r--r-- | includes/theme.inc | 3 |
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; } /** |