You are here

function webform_clear_schema in Webform Clear 7.2

Implements hook_schema().

File

./webform_clear.install, line 6

Code

function webform_clear_schema() {
  $schema['webform_clear'] = array(
    'description' => t('Webform Clear data'),
    'fields' => array(
      'nid' => array(
        'description' => t('The node id'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'clear_time' => array(
        'description' => t('How many seconds after a webform submission to clear it (0 = clear immediately; -1 or no entry = do not clear).'),
        'type' => 'int',
        'unsigned' => FALSE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}