Как это сделать?
Мой код: –
protected function getConfigForm() { $sql = 'SELECT id_order_state,name FROM '._DB_PREFIX_.'order_state_lang'; $results = Db::getInstance()->ExecuteS($sql); $values_query = array(array( 'id' => 'AllFields', 'name' => $this->l('All Fields'), 'val' => 'All', )); foreach ($results as $row) { $values_query[] = array( 'id' => 'OrderID', 'name' => $this->l($row['name']), 'val' => $row['id_order_state'], 'required' => true, ); } return array( 'form' => array( 'legend' => array( 'title' => $this->l('Settings'), 'icon' => 'icon-cogs', ), 'input' => array( array( 'type' => 'checkbox', 'label' => $this->l('Select Required Status'), 'required' => true, 'values' => array( 'query' => $values_query, 'id' => 'id', 'name' => 'name' ), ), ), 'submit' => array( 'title' => $this->l('Save'), ), ), ); }