function saveSettings()
 {
     $field = GNUsocialProfileExtensionField::getKV('id', $this->trimmed('id'));
     if (!$field) {
         $field = new GNUsocialProfileExtensionField();
     }
     $field->title = $this->trimmed('title');
     $field->description = $this->trimmed('description');
     $field->type = $this->trimmed('type');
     $field->systemname = $this->trimmed('systemname');
     if (!gnusocial_field_systemname_validate($field->systemname)) {
         $this->clientError(_('Internal system name must be unique and consist of only alphanumeric characters!'));
     }
     if ($field->id) {
         if ($field->validate()) {
             $field->update();
         } else {
             $this->clientError(_('There was an error with the field data.'));
         }
     } else {
         $field->insert();
     }
     return;
 }