You are here

function print_pdf_update_7203 in Printer, email and PDF versions 7.2

Add Size and Orientation fields for per content type Size and Orientation.

File

print_pdf/print_pdf.install, line 295
Install, update and uninstall functions for the print_pdf module.

Code

function print_pdf_update_7203(&$sandbox) {
  $spec = array(
    'type' => 'varchar',
    'length' => 9,
    'description' => 'Paper size',
  );
  db_add_field('print_pdf_node_conf', 'size', $spec);
  $spec = array(
    'type' => 'varchar',
    'length' => 9,
    'description' => 'Page orientation',
  );
  db_add_field('print_pdf_node_conf', 'orientation', $spec);
}