function tripal_bulk_loader_disable
2.x tripal_bulk_loader.install | tripal_bulk_loader_disable() |
3.x tripal_bulk_loader.install | tripal_bulk_loader_disable() |
Implements hook_disable(). Disable default views when module is disabled
Related topics
File
- tripal_bulk_loader/
tripal_bulk_loader.install, line 15 - Install/Uninstalls, Enables/Disables this module.
Code
function tripal_bulk_loader_disable() {
// Disable all default views provided by this module
require_once ("tripal_bulk_loader.views_default.inc");
$views = tripal_bulk_loader_views_default_views();
foreach (array_keys($views) as $view_name) {
tripal_disable_view($view_name, FALSE, array('suppress_error' => TRUE));
}
}