You are here

function amp_custom_theme in Accelerated Mobile Pages (AMP) 7

Implements hook_custom_theme().

File

./amp.module, line 322

Code

function amp_custom_theme() {
  if (amp_is_amp_request()) {
    return variable_get('amp_theme', 'ampsubtheme_example');
  }
}