domain_conf_variable_delete($domain_id, $variable)Delete a setting from {domain_conf}.
$domain_id The unique domain ID that is being edited.
$variable The name of the variable you wish to delete.
domain_conf/domain_conf.module, line 723
<?php
function domain_conf_variable_delete($domain_id, $variable) {
// Get the current settings for this domain, if any.
$settings = domain_unserialize(db_result(db_query("SELECT settings FROM {domain_conf} WHERE domain_id = %d", $domain_id)));
// Settings found, remove them.
if (!empty($settings)) {
unset($settings[$variable]);
db_query("UPDATE {domain_conf} SET settings = %b WHERE domain_id = %d", serialize($settings), $domain_id);
}
}
?>