function acquia_lift_profiles_disable in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift_profiles/acquia_lift_profiles.install \acquia_lift_profiles_disable()
Implements hook_disable().
File
- acquia_lift_profiles/
acquia_lift_profiles.install, line 51 - Acquia Lift Profiles - Installation file.
Code
function acquia_lift_profiles_disable() {
// Clear the action subscriber cache.
visitor_actions_clear_subscribers();
// Disable the Profiles web admin link.
$item = _acquia_lift_profiles_get_menu_link();
if (!empty($item) && $item['hidden'] == 0) {
$item['hidden'] = 1;
menu_link_save($item);
menu_rebuild();
}
}