function theme_metatag_mobile_ios_app in Metatag 7
Same name and namespace in other branches
- 8 metatag_mobile/metatag_mobile.module \theme_metatag_mobile_ios_app()
Theme callback for an iOS app link meta tag.
The format is:
<link rel="alternate" href="ios-app://123456/example/hello-screen" />
1 theme call to theme_metatag_mobile_ios_app()
- metatag_mobile_metatag_info in metatag_mobile/
metatag_mobile.metatag.inc - Implements hook_metatag_info().
File
- metatag_mobile/
metatag_mobile.module, line 58 - Primary hook implementations for Metatag:Mobile.
Code
function theme_metatag_mobile_ios_app($variables) {
// Pass everything through to the normal 'link' tag theme.
$variables['element']['#name'] = 'alternate';
$variables['element']['#value'] = 'ios-app://' . $variables['element']['#value'];
return theme('metatag_link_rel', $variables);
}