function tripal_featuremap_disable
2.x tripal_featuremap.install | tripal_featuremap_disable() |
3.x tripal_featuremap.install | tripal_featuremap_disable() |
Implements hook_disable(). Disable default views when module is disabled
Related topics
File
- legacy/
tripal_featuremap/ tripal_featuremap.install, line 13 - Handles installation of the feature map module
Code
function tripal_featuremap_disable() {
// Disable all default views provided by this module
require_once ("tripal_featuremap.views_default.inc");
$views = tripal_featuremap_views_default_views();
foreach (array_keys($views) as $view_name) {
tripal_disable_view($view_name, FALSE, array('suppress_error' => TRUE));
}
}