/**
  * Drop tables and clear data if the plugin is deactivated.
  * This will happen only if the user chooses to delete data upon deactivation.
  * @param boolean $network_wide
  */
 public static function deactivate($network_wide = false)
 {
     if (is_multisite() && $network_wide) {
         if (Groups_Options::get_option('groups_network_delete_data', false)) {
             $blog_ids = Groups_Utility::get_blogs();
             foreach ($blog_ids as $blog_id) {
                 self::switch_to_blog($blog_id);
                 self::cleanup(true);
                 self::restore_current_blog();
             }
         }
     } else {
         self::cleanup();
     }
 }