function answers_voting_node_view in Answers 7.4
Implements hook_node_view().
Adding the voting widget manually.
File
- answers_voting/
answers_voting.module, line 13  - The answers_voting module.
 
Code
function answers_voting_node_view($node, $view_mode = 'full') {
  if ($view_mode == 'full' && ($node->type == 'answers_question' || $node->type == 'answers_answer')) {
    $node->content['answersRateWidget'] = array(
      '#type' => 'markup',
      '#markup' => rate_embed($node, 'answers_up_down', RATE_FULL),
      '#weight' => 98,
    );
  }
}