_options = array(); $this->_values = array(); foreach ($languages as $iso => $name) { if ($iso == api_get_setting('language.platform_language')) { $this->addOption($name, $iso, array('selected'=>'selected')); } else { $this->addOption($name, $iso); } } } }