/**
  * Create/Update a custom setting
  */
 public function saveCustomSetting()
 {
     if (isset($_POST['custom_setting_id']) && $_POST['custom_setting_id']) {
         $setting = srCertificateCustomTypeSetting::find((int) $_POST['custom_setting_id']);
     } else {
         $setting = new srCertificateCustomTypeSetting();
     }
     $form = new srCertificateCustomTypeSettingFormGUI($this, $setting);
     if ($form->saveObject()) {
         ilUtil::sendSuccess($this->pl->txt('msg_setting_saved'), true);
         $this->ctrl->redirect($this, 'showSettings');
     } else {
         $form->setValuesByPost();
         $this->tpl->setContent($form->getHTML());
     }
 }