5 * Provides System module hook implementations for testing purposes.
9 * Implements hook_page_attachments_alter().
11 function system_module_test_page_attachments_alter(&$page) {
12 // Remove the HTML5 mobile meta-tags.
13 $meta_tags_to_remove = ['MobileOptimized', 'HandheldFriendly', 'viewport', 'cleartype'];
14 foreach ($page['#attached']['html_head'] as $index => $parts) {
15 if (in_array($parts[1], $meta_tags_to_remove)) {
16 unset($page['#attached']['html_head'][$index]);