You are here

function theme_metatag_mobile_android_app in Metatag 7

Same name and namespace in other branches
  1. 8 metatag_mobile/metatag_mobile.module \theme_metatag_mobile_android_app()

Theme callback for an Android app link meta tag.

The format is:


<link rel="alternate" href="android-app://com.example.Example/sitesection/sitepage/thispage" />
1 theme call to theme_metatag_mobile_android_app()
metatag_mobile_metatag_info in metatag_mobile/metatag_mobile.metatag.inc
Implements hook_metatag_info().

File

metatag_mobile/metatag_mobile.module, line 42
Primary hook implementations for Metatag:Mobile.

Code

function theme_metatag_mobile_android_app($variables) {

  // Pass everything through to the normal 'link' tag theme.
  $variables['element']['#name'] = 'alternate';
  $variables['element']['#value'] = 'android-app://' . $variables['element']['#value'];
  return theme('metatag_link_rel', $variables);
}