function pm_email_notify_schema in Privatemsg 7
Same name and namespace in other branches
- 6 pm_email_notify/pm_email_notify.install \pm_email_notify_schema()
@file This file takes care of creating/deleting pm_email_notify table used for storing user notification preferences
File
- pm_email_notify/
pm_email_notify.install, line 9 - This file takes care of creating/deleting pm_email_notify table used for storing user notification preferences
Code
function pm_email_notify_schema() {
$schema = array();
$schema['pm_email_notify'] = array(
'description' => '{pm_email_notify} holds private message email notification settings for each user ',
'fields' => array(
'user_id' => array(
'description' => 'ID of the user',
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'email_notify_is_enabled' => array(
'description' => 'Email Notification Status (Enabled=1, Disabled=0)',
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
),
'unique keys' => array(
'user_id' => array(
'user_id',
),
),
);
return $schema;
}