function theme_metatag_mobile_android_app in Metatag 8
Same name and namespace in other branches
- 7 metatag_mobile/metatag_mobile.module \theme_metatag_mobile_android_app()
Theme callback for an Android app link meta tag.
The format is (all on oneline): <link rel="alternate" href="android-app://com.example.Example /sitesection/sitepage/thispage" />
File
- metatag_mobile/
metatag_mobile.module, line 86 - Contains metatag_mobile.module..
Code
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);
}