function advpoll_schema in Advanced Poll 7
Same name and namespace in other branches
- 6.3 advpoll.install \advpoll_schema()
- 6 advpoll.install \advpoll_schema()
- 6.2 advpoll.install \advpoll_schema()
- 7.3 advpoll.install \advpoll_schema()
- 7.2 advpoll.install \advpoll_schema()
@file Install file for Advanced Poll Much thanks to the example modules. MW
File
- ./
advpoll.install, line 9 - Install file for Advanced Poll Much thanks to the example modules. MW
Code
function advpoll_schema() {
// Install electoral list table
$schema['advpoll_electoral_list'] = array(
'fields' => array(
'nid' => array(
'description' => t('Node id for the relevant advpoll.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'uid' => array(
'description' => t('User id who will be given access to vote in an advpoll.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'nid',
'uid',
),
);
return $schema;
}