Well, I don't know a whole lot about PHP, so I'm sure someone from the community will be able to help as I think this is a relatively easy task. I created a Webform for users to enter a keyword. When this is entered I want them to be able to get points if it is the correct keyword. And if the word is not correct, display a message . I found the following code which works great in allowing the points to be moderated, but it still requires me to look at all the submissions.

<?php
    $params = array (
      'uid' => $user->uid,
      'points' => 25,
      'moderate' => TRUE,
    );
    userpoints_userpointsapi($params); 
?>

Thanks,
Grant

Comments

glarsch’s picture

Well, I should have known there was a module for that; webform validate to the rescue