Esempio n. 1
0
 public function setInputType($type)
 {
     switch ($type) {
         case 'select':
             if ($this->high_range - $this->low_range > 100000) {
                 throw new \Exception(t('Range is too high for a select input'));
             }
             $this->setChoices(range($this->low_range, $this->high_range, $this->increment));
             break;
     }
     parent::setInputType($type);
 }