I am creating a custom cpnav menu for a product I am making and one of the options is to enable/disable certain aspects of the product. To disable these aspects I must disable the plugins they depend on.
My question is: How would I go about disabling/enabling a plugin in PHP? I tried having the PHP change the active column to zero in the plugin table but that does not work.