function restrict_by_ip_schema in Restrict Login or Role Access by IP Address 7.3
Same name and namespace in other branches
- 6.3 restrict_by_ip.install \restrict_by_ip_schema()
- 6.2 restrict_by_ip.install \restrict_by_ip_schema()
Implementation of hook_schema().
File
- ./
restrict_by_ip.install, line 6
Code
function restrict_by_ip_schema() {
$schema['restrict_by_ip'] = array(
'description' => t('The Restrict By IP Table'),
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'restrict_by_ip_address' => array(
'type' => 'varchar',
'length' => 256,
),
),
'primary key' => array(
'uid',
),
);
return $schema;
}