diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-29 11:08:55 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-29 11:08:55 -0200 |
commit | d982605f5ebf573c891e79253c90adfe712847bf (patch) | |
tree | 7f444c22e3ff37a2a85a4f340d864ae7418dc62b | |
parent | 42c218e6f393324a875f7ce677d69cc066486845 (diff) | |
download | nuvemdario-d982605f5ebf573c891e79253c90adfe712847bf.tar.gz nuvemdario-d982605f5ebf573c891e79253c90adfe712847bf.tar.bz2 |
Custom common methods (4)
-rw-r--r-- | common_methods.php | 2 | ||||
-rw-r--r-- | drupal7_theme_methods.php | 4 | ||||
-rw-r--r-- | node-og-group-post.tpl.php | 2 | ||||
-rw-r--r-- | node.tpl.php | 2 |
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); ?> |