function regcode_mailer_schema in Registration codes 7
Same name and namespace in other branches
- 6.2 regcode_mailer/regcode_mailer.install \regcode_mailer_schema()
- 6 regcode_mailer/regcode_mailer.install \regcode_mailer_schema()
- 7.2 regcode_mailer/regcode_mailer.install \regcode_mailer_schema()
Implements hook_schema().
File
- regcode_mailer/
regcode_mailer.install, line 11 - Install, uninstall and scheme functions for the regcode_mailer module.
Code
function regcode_mailer_schema() {
$schema['regcode_mailer'] = array(
'description' => 'Registration code mailer information',
'fields' => array(
'id' => array(
'description' => 'Mail ID',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'disp-width' => '11',
),
'rid' => array(
'description' => 'Regcode ID',
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'disp-width' => '11',
),
'mailed' => array(
'description' => 'The date code was mailed',
'type' => 'int',
'not null' => FALSE,
),
'recipient' => array(
'description' => 'The address the code was mailed to',
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
),
'primary key' => array(
'id',
),
);
return $schema;
}