This function will attempt to update a setting for the given Infusion or create it if the setting does not exist.
Quote
set_setting ( string $setting_name , mixed $setting_value , string $setting_inf )
<?php
require_once INCLUDES."infusions_include.php";
$setting = set_setting("mysetting", "myvalue", "myinfusion");
if (!$setting) {
// An error occurred
}
?>