function sp_admin_bar_do_uninstall() { global $spGlobals; sp_delete_option('spAdminBar'); sp_delete_option('spAkismet'); # remove the auth if (!empty($spGlobals['auths_map']['bypass_akismet'])) { sp_delete_auth('bypass_akismet'); } # remove our auto update stuff $up = sp_get_sfmeta('autoupdate', 'admin'); if ($up) { sp_delete_sfmeta($up[0]['meta_id']); } # empty out the sfwaiting table spdb_query('TRUNCATE ' . SFWAITING); }
function sp_captcha_do_uninstall() { # delete our option sp_delete_option('spCaptcha'); sp_delete_auth('bypass_captcha'); }