summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common_methods.php2
-rw-r--r--drupal7_theme_methods.php4
-rw-r--r--node-og-group-post.tpl.php2
-rw-r--r--node.tpl.php2
4 files changed, 5 insertions, 5 deletions
diff --git a/common_methods.php b/common_methods.php
index 2a15e4c..4e86835 100644
--- a/common_methods.php
+++ b/common_methods.php
@@ -170,7 +170,7 @@ function nuvemdario_node_worker($node) {
*/
function nuvemdario_terms_worker($terms) {
$result = '';
-$terms = get_terms_D7($content);
+$terms = nuvemdario_get_terms_D7($content);
if (!empty($terms)) {
ob_start();?>
<img class="b2-metadata-icon" src="<?php echo nuvemdario_get_full_path_to_theme(); ?>/images/posttagicon.png" width="16" height="16" alt="" /> <?php
diff --git a/drupal7_theme_methods.php b/drupal7_theme_methods.php
index eb0da4c..9b2426a 100644
--- a/drupal7_theme_methods.php
+++ b/drupal7_theme_methods.php
@@ -210,7 +210,7 @@ function nuvemdario_links_woker_D7($content) {
}
}
-$terms = get_terms_D7($content);
+$terms = nuvemdario_get_terms_D7($content);
if (!empty($terms)) {
ob_start();?>
<img class="b2-metadata-icon" src="<?php echo nuvemdario_get_full_path_to_theme(); ?>/images/posttagicon.png" width="16" height="16" alt="" /> <?php
@@ -222,7 +222,7 @@ $terms = get_terms_D7($content);
return $result;
}
-function get_terms_D7($content) {
+function nuvemdario_get_terms_D7($content) {
$result = NULL;
foreach (array_keys($content) as $name) {
$$name = & $content[$name];
diff --git a/node-og-group-post.tpl.php b/node-og-group-post.tpl.php
index 1eb2d0b..b263350 100644
--- a/node-og-group-post.tpl.php
+++ b/node-og-group-post.tpl.php
@@ -16,7 +16,7 @@
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
- $terms = get_terms_D7($content);
+ $terms = nuvemdario_get_terms_D7($content);
hide($content[$terms['#field_name']]);
print render($content);
?>
diff --git a/node.tpl.php b/node.tpl.php
index 65b51b5..692f55f 100644
--- a/node.tpl.php
+++ b/node.tpl.php
@@ -17,7 +17,7 @@
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
- $terms = get_terms_D7($content);
+ $terms = nuvemdario_get_terms_D7($content);
hide($content[$terms['#field_name']]);
print render($content);
?>