You are here

function webform2pdf_schema in Webform2PDF 7.4

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

Implements hook_schema().

File

./webform2pdf.install, line 93
Webform2pdf module install/schema hooks.

Code

function webform2pdf_schema() {
  $schema['webform2pdf'] = array(
    'description' => 'Database containing the settings of webform2pdf.',
    'fields' => array(
      'nid' => array(
        'description' => 'The node identifier of a webform2pdf.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'enabled' => array(
        'description' => 'Show if a pdf will be generated: 0: OFF, 1: ON.',
        'type' => 'int',
        'size' => 'tiny',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'data' => array(
        'type' => 'blob',
        'size' => 'big',
        'serialize' => TRUE,
        'description' => 'Serialized data containing the webform2pdf properties.',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}