public function uninstall()
 {
     global $db;
     if ($db->field_exists("myprofilepermissions", "users")) {
         $db->drop_column("users", "myprofilepermissions");
     }
     MyProfileUtils::delete_settings(array("mppermissionsenabled", "mppermissionsgroups"));
     MyProfileUtils::delete_settinggroups(array("myprofilepermissions"));
 }
 public function uninstall()
 {
     $settings = array("mpbuddylistenabled", "mpbuddylistrecord", "mpbuddylistavatarmaxdimensions");
     MyProfileUtils::delete_settings($settings);
     $settinggroups = array("myprofilebuddylist");
     MyProfileUtils::delete_settinggroups($settinggroups);
 }
 public function uninstall()
 {
     global $db;
     $db->drop_table("myprofilevisitors");
     if ($db->field_exists("viewcount", "users")) {
         $db->drop_column("users", "viewcount");
     }
     $settings = array("mpvisitorsenabled", "mpvisitorsrecord", "mpprofileviewsenabled");
     MyProfileUtils::delete_settings($settings);
     $settinggroups = array("myprofilevisitors");
     MyProfileUtils::delete_settinggroups($settinggroups);
 }
 public function uninstall()
 {
     global $db, $cache;
     $db->drop_table("myprofilecomments");
     if ($db->field_exists("canmanagecomments", "usergroups")) {
         $db->drop_column("usergroups", "canmanagecomments");
     }
     if ($db->field_exists("cansendcomments", "usergroups")) {
         $db->drop_column("usergroups", "cansendcomments");
     }
     if ($db->field_exists("caneditowncomments", "usergroups")) {
         $db->drop_column("usergroups", "caneditowncomments");
     }
     if ($db->field_exists("candeleteowncomments", "usergroups")) {
         $db->drop_column("usergroups", "candeleteowncomments");
     }
     if ($db->field_exists("commentsperday", "usergroups")) {
         $db->drop_column("usergroups", "commentsperday");
     }
     $cache->update_usergroups();
     if ($db->field_exists("mpcommentsopen", "users")) {
         $db->drop_column("users", "mpcommentsopen");
     }
     if ($db->field_exists("mpcommentnotification", "users")) {
         $db->drop_column("users", "mpcommentnotification");
     }
     if ($db->field_exists("mpwhocancomment", "users")) {
         $db->drop_column("users", "mpwhocancomment");
     }
     if ($db->field_exists("mpnewcomments", "users")) {
         $db->drop_column("users", "mpnewcomments");
     }
     if ($db->field_exists("mpcommentsapprove", "users")) {
         $db->drop_column("users", "mpcommentsapprove");
     }
     $settings = array("mpcommentsenabled", "mpcommentsajaxenabled", "mpcommentsnotification", "mpcommentsperpage", "mpcommentsminlength", "mpcommentsmaxlength", "mpcommentsignoreenabled", "mpcommentstimeedit", "mpcommentsstatusenabled", "mpcommentsallowimg", "mpcommentsallowvideo", "mpcommentsallowsmilies", "mpcommentsallowmycode", "mpcommentsfilterbadwords", "mpcommentsallowhtml", "mpcommentsshowwysiwyg", "mpcommentsclosedonbanned", "mpcommentsshowstats");
     MyProfileUtils::delete_settings($settings);
     $settinggroups = array("myprofilecomments");
     MyProfileUtils::delete_settinggroups($settinggroups);
 }
 public function uninstall()
 {
     global $db;
     MyProfileUtils::delete_settings(array("mpreferredbyenabled"));
     MyProfileUtils::delete_settinggroups(array("myprofilereferredby"));
 }