You are here

function vud_comment_template_suggestions in Vote Up/Down 7

Same name and namespace in other branches
  1. 6.3 vud_comment/vud_comment.module \vud_comment_template_suggestions()
  2. 6.2 vud_comment/vud_comment.module \vud_comment_template_suggestions()

Implementation of vud hook_template_suggestions().

File

vud_comment/vud_comment.module, line 221
Adds a voting widget to comments.

Code

function vud_comment_template_suggestions($template_type, $plugin, $entity_id) {
  $comment = comment_load($entity_id);
  $node = node_load($comment->nid);
  return array(
    $template_type,
    $template_type . '_comment',
    $template_type . '_comment_' . $plugin['name'],
    $template_type . '_comment_' . $plugin['name'] . '__' . $node->type,
  );
}