commerce_billy_pdf.install in Commerce Billy 7
Commerce Billy PDF installation file.
File
modules/commerce_billy_pdf/commerce_billy_pdf.installView source
<?php
/**
* @file
* Commerce Billy PDF installation file.
*/
/**
* Implements hook_enable().
*/
function commerce_billy_pdf_enable() {
// Init some defaults.
$settings = array(
'invoice_header' => 'My company<br/>Street 123, State<br/>United States',
'invoice_location' => 'Location',
'invoice_text' => '',
'invoice_footer' => 'My company, Street 123, State, United States',
);
variable_set('commerce_billy_pdf_text_settings', $settings);
}
/**
* Implements hook_uninstall().
*/
function commerce_billy_pdf_uninstall() {
variable_del('commerce_billy_pdf_text_settings');
variable_del('commerce_billy_pdf_logo');
variable_del('commerce_billy_pdf_css_files');
variable_del('commerce_billy_pdf_converter');
variable_del('commerce_billy_pdf_order_statuses');
}
Functions
Name | Description |
---|---|
commerce_billy_pdf_enable | Implements hook_enable(). |
commerce_billy_pdf_uninstall | Implements hook_uninstall(). |