You are here

function webform2pdf_install in Webform2PDF 6

Same name and namespace in other branches
  1. 6.2 webform2pdf.install \webform2pdf_install()
  2. 7.4 webform2pdf.install \webform2pdf_install()
  3. 7.3 webform2pdf.install \webform2pdf_install()

Implementation of hook_install().

File

./webform2pdf.install, line 6

Code

function webform2pdf_install() {
  drupal_install_schema('webform2pdf');
  variable_set('webform2pdf_default', array(
    'pdf_lib' => 'sites/all/libraries/tcpdf',
    'download' => 0,
    'pdf_send_email' => 0,
    'page_format' => 'A4',
    'page_orientation' => 'P',
    'h_left_logo' => 0,
    'h_right_logo' => 0,
    'f_left_logo' => 0,
    'f_right_logo' => 0,
    'h_font_size' => 10,
    'p_font_size' => 12,
    'f_font_size' => 10,
    'h_txt_align' => 'L',
    'h_font_family' => 'dejavuserif',
    'p_txt_align' => 'L',
    'p_font_family' => 'dejavuserif',
    'f_txt_align' => 'L',
    'f_font_family' => 'dejavuserif',
    'h_txt' => '',
    'f_txt' => '',
    'p_body' => '',
    'format' => 0,
    'h_left_logo_size' => '270x205',
    'h_right_logo_size' => '270x205',
    'f_left_logo_size' => '270x56',
    'f_right_logo_size' => '270x56',
  ));
}