You are here

function vud_term_template_suggestions in Vote Up/Down 7

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

Implementation of vud hook_template_suggestions().

File

vud_term/vud_term.module, line 189
Adds a voting widget to terms.

Code

function vud_term_template_suggestions($template_type, $plugin, $entity_id) {
  $term = taxonomy_get_term($entity_id);
  return array(
    $template_type,
    $template_type . '_term',
    $template_type . '_term_' . $plugin['name'],
    $template_type . '_term_' . $plugin['name'] . '__' . $term->vid,
  );
}