You are here

function acquia_agent_disable in Acquia Connector 7

Same name and namespace in other branches
  1. 6.2 acquia_agent/acquia_agent.install \acquia_agent_disable()
  2. 6 acquia_agent/acquia_agent.install \acquia_agent_disable()
  3. 7.3 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 34
Install, update and uninstall functions for the acquia_agent module.

Code

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