You are here

function commerce_billy_mail_custom_theme in Commerce Billy Mail 7

Implements hook_custom_theme().

2 calls to commerce_billy_mail_custom_theme()
commerce_billy_mail_settings_form in ./commerce_billy_mail.admin.inc
commerce_billy_mail_settings_form.admin settings form.
commerce_billy_mail_theme_registry_alter in ./commerce_billy_mail.module
Implements hook_theme_registry_alter.
1 string reference to 'commerce_billy_mail_custom_theme'
commerce_billy_mail_menu in ./commerce_billy_mail.module
Implements hook_menu().

File

./commerce_billy_mail.module, line 205

Code

function commerce_billy_mail_custom_theme() {

  // We have to set the default theme by hard here, otherwise the pdf
  // theming will be broken by admin theme in some cases.
  // Mailsystem is no helper here, because it doesn't act on the PDF.
  // Hint: This is not enough. Furthermore this function has to be set as
  // "theme callback" in hook_menu for the resend functionality!
  return variable_get('theme_default');
}