You are here

public function RateButton::addClass in Rate 7.2

Add class.

Parameters

string $class:

File

classes/button.inc, line 120

Class

RateButton

Code

public function addClass($class) {
  $classes = array_map('trim', explode(' ', $this->class));
  $classes[] = $class;
  $this->class = implode(' ', array_filter(array_unique($classes)));
}