function commons_search_solr_user_post_features_enable_feature in Drupal Commons 7.3
Feature module hook. Invoked on a Feature module after that module is enabled.
Parameters
$component: String name of the component that has just been enabled.
File
- modules/
commons/ commons_search/ modules/ commons_search_solr_user/ commons_search_solr_user.module, line 352
Code
function commons_search_solr_user_post_features_enable_feature($component) {
if ($component == 'apachesolr_search_page') {
$revert = array(
'commons_search_solr_user' => array(
'apachesolr_search_page',
),
);
features_revert($revert);
// We must clear the menu cache before trying to set a link, otherwise the menu
// system won't show the people link because it doesn't think the page exists
// even though the link exists in the menu.
drupal_static_reset('apachesolr_search_load_all_search_pages');
$revert = array(
'commons_search_solr_user' => array(
'menu_links',
),
);
features_revert($revert);
}
}