function metatag_module_implements_alter in Metatag 8
Implements hook_module_implements_alter().
File
- ./
metatag.module, line 188 - Contains metatag.module.
Code
function metatag_module_implements_alter(&$implementations, $hook) {
if ($hook == 'page_attachments_alter') {
// Move metatag_page_attachments_alter() to the end of the list. This is so
// the canonical and shortlink tags can be removed that are added by
// taxonomy_page_attachments_alter().
// @todo Remove once https://www.drupal.org/node/2282029 is fixed.
$group = $implementations['metatag'];
unset($implementations['metatag']);
$implementations['metatag'] = $group;
}
}