&$GLOBALS['TL_LANG']['tl_module']['oxticket_category'], 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_oxvoucher', 'getOxCategories'), 'eval' => array('chosen' => true, 'mandatory'=>true), 'sql' => "varchar(32) NOT NULL default ''" ); class tl_module_oxvoucher extends \Backend { public function getOxCategories() { $oxDB = \Voucher::getOxDbInstance(); $arrCategories = array(); $objResult = $oxDB->execute("SELECT OXID, OXTITLE FROM oxcategories WHERE OXACTIVE = '1' ORDER BY OXTITLE"); if ($objResult->numRows) { while ($objResult->next()) { $arrCategories[$objResult->OXID] = $objResult->OXTITLE; } } return $arrCategories; } }