-
Notifications
You must be signed in to change notification settings - Fork 0
/
micro_phone.install
41 lines (39 loc) · 1 KB
/
micro_phone.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @file
* Install/Update/Uninstall functions for safeword module
*/
/**
* Implements hook_field_schema().
*/
function micro_phone_field_schema($field) {
$columns = array(
'format' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
'country_code' => array(
'type' => 'varchar',
'length' => 4,
'not null' => FALSE,
),
'area_code' => array(
'type' => 'varchar',
'length' => 3,
'not null' => FALSE,
),
'prefix' => array('type' => 'varchar', 'length' => 3, 'not null' => FALSE),
'us_number' => array(
'type' => 'varchar',
'length' => 19,
'not null' => FALSE,
),
'number' => array('type' => 'varchar', 'length' => 25, 'not null' => FALSE),
'type' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
);
$indexes = array(
'number' => array('number'),
'country_code' => array('country_code'),
);
return array(
'columns' => $columns,
'indexes' => $indexes,
);
}