field_ipaddress.install in IP address fields 7
Install, update and uninstall functions for the field_ipaddress module.
File
field_ipaddress.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the field_ipaddress module.
*/
/**
* Implements hook_field_schema().
*/
function field_ipaddress_field_schema() {
return array(
'columns' => array(
'start' => array(
'type' => 'int',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
'end' => array(
'type' => 'int',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'start' => array(
'start',
),
'range' => array(
'start',
'end',
),
),
);
}
Functions
Name | Description |
---|---|
field_ipaddress_field_schema | Implements hook_field_schema(). |