You are here

public function RateWidget::processVote in Rate 7.2

Process the users vote (if applicable).

1 call to RateWidget::processVote()
RateWidget::__construct in classes/widget.inc
Create a new Rate widget.

File

classes/widget.inc, line 303

Class

RateWidget

Code

public function processVote() {
  if ($button = $this
    ->clickedButton()) {
    $this->just_voted = TRUE;
    $this
      ->vote($button
      ->getValue());
  }
}