I have the User IP Log that displays the logged data using a default view defined in the module; when the module is disabled, the view page becomes broken, throwing PHP warnings and notices.
I would like to disable the default view when the module defining it is disabled, to fix the PHP warnings I get. Is it the right way of handling this? If it is so, what API could be used for disabling the default view defined by a module?