function tripal_contact_disable
2.x tripal_contact.install | tripal_contact_disable() |
3.x tripal_contact.install | tripal_contact_disable() |
Implements hook_disable(). Disable default views when module is disabled
File
- legacy/
tripal_contact/ tripal_contact.install, line 16 - Handles install, uninstall, disable and enable functionality including database tables.
Code
function tripal_contact_disable() {
// Disable all default views provided by this module
require_once ("tripal_contact.views_default.inc");
$views = tripal_contact_views_default_views();
foreach (array_keys($views) as $view_name) {
tripal_disable_view($view_name, FALSE, array('suppress_error' => TRUE));
}
}