function vud_node_template_suggestions in Vote Up/Down 7
Same name and namespace in other branches
- 6.3 vud_node/vud_node.module \vud_node_template_suggestions()
- 6.2 vud_node/vud_node.module \vud_node_template_suggestions()
Implementation of vud hook_template_suggestions().
File
- vud_node/
vud_node.module, line 230 - Adds a voting widget to nodes.
Code
function vud_node_template_suggestions($template_type, $plugin, $entity_id) {
$node = node_load($entity_id);
return array(
$template_type,
$template_type . '_node',
$template_type . '_node_' . $plugin['name'],
$template_type . '_node_' . $plugin['name'] . '__' . $node->type,
);
}