function commons_events_solr_disable in Drupal Commons 7.3
Implements hook_disable().
File
- modules/
commons/ commons_events/ modules/ commons_events_solr/ commons_events_solr.install, line 35 - Commons Events Solr install script.
Code
function commons_events_solr_disable() {
module_load_include('inc', 'page_manager', 'plugins/tasks/page');
$page = page_manager_page_load('views_events_landing_page');
ctools_include('export');
ctools_export_set_object_status($page, FALSE);
// Revert base Events feature so that the Events menu link is recreated.
features_revert(array(
'commons_events' => array(
'menu_links',
),
));
menu_cache_clear_all();
}