You are here

function fillpdf_update_7002 in FillPDF 7.2

Same name and namespace in other branches
  1. 7 fillpdf.install \fillpdf_update_7002()

Add fields to store token replacements.

File

./fillpdf.install, line 163
Install

Code

function fillpdf_update_7002() {
  if (!db_field_exists('fillpdf_forms', 'replacements')) {
    db_add_field('fillpdf_forms', 'replacements', array(
      'type' => 'text',
      'size' => 'normal',
      'not null' => FALSE,
    ));
  }
  if (!db_field_exists('fillpdf_fields', 'replacements')) {
    db_add_field('fillpdf_fields', 'replacements', array(
      'type' => 'text',
      'size' => 'normal',
      'not null' => FALSE,
    ));
  }
}