function webform2pdf_update_7302 in Webform2PDF 7.3
Same name and namespace in other branches
- 7.4 webform2pdf.install \webform2pdf_update_7302()
File
- ./
webform2pdf.install, line 377 - Webform2pdf module install/schema hooks.
Code
function webform2pdf_update_7302(&$sandbox) {
db_add_field('webform2pdf', 'p_background', array(
'description' => 'Page background image.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
$webform2pdf_default = variable_get('webform2pdf_default', array());
$webform2pdf_default['p_background'] = 0;
variable_set('webform2pdf_default', $webform2pdf_default);
$sandbox['#finished'] = 1;
return t('The page background field added to the webform2pdf table.');
}