You are here

function mefibs_disable in MEFIBS - More exposed forms in blocks 7

Implements hook_disable().

Clean mefibs from all views display extenders to prevent errors.

See also

https://www.drupal.org/node/2599788

File

./mefibs.install, line 9

Code

function mefibs_disable() {
  $views = views_get_all_views();
  foreach ($views as $view) {
    if (!isset($view->display_handler->extender['mefibs'])) {
      continue;
    }
    unset($view->display_handler->extender['mefibs']);
    views_save_view($view);
  }
}