nortmas
11/5/2014 - 10:58 AM

Change theme by url

/**
 * Implements hook_custom_theme().
 */
function MODULE_custom_theme() {
  global $base_url;
  if (preg_match("/m\./i", $base_url)) {
    return 'aa_m';
  } else {
    return 'aa';
  }
}