You are here

function uc_taxes_update_7000 in Ubercart 7.3

Add "price including tax" columns.

File

uc_taxes/uc_taxes.install, line 118
Install, update and uninstall functions for the uc_taxes module.

Code

function uc_taxes_update_7000() {
  db_add_field('uc_taxes', 'include', array(
    'description' => 'Boolean flag indicating that product prices should be displayed including the tax.',
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field('uc_taxes', 'inclusion_text', array(
    'description' => 'Text to be shown near a product price that includes tax.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
  return t('Added "price including tax" columns.');
}