You are here

function automatic_updates_9_3_shim_module_implements_alter in Automatic Updates 8.2

Implements hook_module_implements_alter().

@todo Remove after https://www.drupal.org/i/3236497 is committed.

File

automatic_updates_9_3_shim/automatic_updates_9_3_shim.module, line 33
Contains hook implementations for Automatic Updates 9.3 shim module.

Code

function automatic_updates_9_3_shim_module_implements_alter(&$implementations, $hook) {
  if ($hook === 'page_top') {

    // Remove hook_page_top() implementation from the Update module. This '
    // implementation displays error messages about security releases. We call
    // this implementation in our own automatic_updates_page_top() except on our
    // own routes to avoid stale messages about the security releases after an
    // update.
    unset($implementations['update']);
  }
}