You are here

function acquia_lift_profiles_disable in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 acquia_lift_profiles/acquia_lift_profiles.install \acquia_lift_profiles_disable()

Implements hook_disable().

File

acquia_lift_profiles/acquia_lift_profiles.install, line 23
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)) {
    menu_link_delete($item['mlid']);
  }
}