1); } } /** * Implements hook_theme(). */ function metatag_mobile_theme() { $info['metatag_mobile_android_app'] = array( 'render element' => 'element', ); $info['metatag_mobile_ios_app'] = array( 'render element' => 'element', ); return $info; } /** * Theme callback for an Android app link meta tag. * * The format is: * */ function theme_metatag_mobile_android_app($variables) { // Pass everything through to the normal 'link' tag theme. $variables['element']['#name'] = 'alternative'; $variables['element']['#value'] = 'android-app://' . $variables['element']['#value']; return theme('metatag_link_rel', $variables); } /** * Theme callback for an iOS app link meta tag. * * The format is: * */ function theme_metatag_mobile_ios_app($variables) { // Pass everything through to the normal 'link' tag theme. $variables['element']['#name'] = 'alternative'; $variables['element']['#value'] = 'ios-app://' . $variables['element']['#value']; return theme('metatag_link_rel', $variables); } /* * theme-color * MobileOptimized * HandheldFriendly * viewport * cleartype * apple-mobile-web-app-capable * apple-mobile-web-app-status-bar-style * format-detection * android-app */