function tripal_phylogeny_disable
2.x tripal_phylogeny.install | tripal_phylogeny_disable() |
3.x tripal_phylogeny.install | tripal_phylogeny_disable() |
Implements hook_disable().
Disable default views when module is disabled
Related topics
File
- tripal_phylogeny/
tripal_phylogeny.install, line 56 - Installation of the phylotree module
Code
function tripal_phylogeny_disable() {
// Disable all default views provided by this module
require_once ("tripal_phylogeny.views_default.inc");
$views = tripal_phylogeny_views_default_views();
foreach (array_keys($views) as $view_name) {
tripal_disable_view($view_name, FALSE, array('suppress_error' => TRUE));
}
}