You are here

function acquia_agent_disable in Acquia Connector 6

Same name and namespace in other branches
  1. 6.2 acquia_agent/acquia_agent.install \acquia_agent_disable()
  2. 7.3 acquia_agent/acquia_agent.install \acquia_agent_disable()
  3. 7 acquia_agent/acquia_agent.install \acquia_agent_disable()
  4. 7.2 acquia_agent/acquia_agent.install \acquia_agent_disable()

Implementation of hook_disable().

File

acquia_agent/acquia_agent.install, line 28

Code

function acquia_agent_disable() {
  $mlid = db_result(db_query("SELECT mlid FROM {menu_links} WHERE link_title = 'acquia_subscription_status' AND menu_name = 'admin_menu'"));
  if ($mlid) {
    menu_link_delete($mlid);
  }
}