function _commerce_billy_mail_is_theme_registry_workaround_available in Commerce Billy Mail 7
Helper function that returns true if the theme registry workaround is available, else false.
Return value
boolean
3 calls to _commerce_billy_mail_is_theme_registry_workaround_available()
- 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.
- _commerce_billy_mail_get_pdf_theme_items in ./
commerce_billy_mail.module
File
- ./
commerce_billy_mail.module, line 373
Code
function _commerce_billy_mail_is_theme_registry_workaround_available() {
$admin_theme = variable_get('admin_theme', 0);
return !empty($admin_theme) && variable_get('commerce_billy_mail_attach_pdf_invoice', TRUE) && module_exists('commerce_billy_pdf');
}