public function __construct($name) { parent::__construct($name); //add fontello icons $icons = MetaBox::getFontelloIcons(); $this->setOptions($icons); }
public function __construct($name) { parent::__construct($name); //Fix for compatiblity with other checbox controls (add value = 1) $this->setOptions(array(array('label' => Translate::translate('Yes'), 'value' => 1))); }