function phone_field_schema in Phone 7.2
Same name and namespace in other branches
- 7 phone.install \phone_field_schema()
Implements hook_field_schema().
1 call to phone_field_schema()
- phone_cck_convert_admin_form_submit in phone_cck_convert/
phone_cck_convert.module - Submit handler.
File
- ./
phone.install, line 46 - Install/Update/Uninstall functions for phone module
Code
function phone_field_schema($field) {
$columns = array(
'numbertype' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => NULL,
),
'number' => array(
'type' => 'varchar',
'length' => 30,
'not null' => FALSE,
'default' => NULL,
),
'countrycode' => array(
'type' => 'varchar',
'length' => 2,
'not null' => FALSE,
'default' => NULL,
),
'extension' => array(
'type' => 'varchar',
'length' => 7,
'not null' => FALSE,
'default' => NULL,
),
);
return array(
'columns' => $columns,
'indexes' => array(
'countrycode' => array(
'countrycode',
),
'numbertype' => array(
'numbertype',
),
),
);
}