You are here

function acquia_lift_profiles_enable in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 acquia_lift_profiles/acquia_lift_profiles.install \acquia_lift_profiles_enable()

Implements hook_enable().

File

acquia_lift_profiles/acquia_lift_profiles.install, line 35
Acquia Lift Profiles - Installation file.

Code

function acquia_lift_profiles_enable() {

  // Clear the action subscriber cache.
  visitor_actions_clear_subscribers();

  // Unhide the menu link if it's hidden.
  $item = _acquia_lift_profiles_get_menu_link();
  if (!empty($item) && $item['hidden'] == 1) {
    $item['hidden'] = 0;
    menu_link_save($item);

    // Update the menu router information.
    menu_rebuild();
  }
}