80,86d79
<   $form['vud_node_autovote'] = array(
<     '#type'          => 'radios',
<     '#title'         => t('Auto vote'),
<     '#description'   => t('The creator of the node auto-vote.'),
<     '#default_value' => variable_get('vud_node_autovote', 0),
<     '#options'       => array(0 => 'No', 1 => 'Yes'),
<   );
129,146d121
<       break;
<     case 'insert':
<       $node_type = in_array($node->type, variable_get('vud_node_types', array()), TRUE);
<       if ($node_type) {
<         if (variable_get('vud_node_autovote', 0)) {
<           $vote = array(
<             'value' => '1',
<             'value_type' => 'points',
<             'tag' => variable_get('vud_tag', 'vote'),
<             'content_id' => $node->nid,
<             'content_type' => 'node',
<             'uid' => $node->uid,
<            );
<            $votes = array(0 => $vote);
<            votingapi_set_votes($votes);
<         }
<       }
<       break;
