phonefield.install in Phone Field 7
Install file for the phonefield module.
File
phonefield.installView source
<?php
/**
* @file
* Install file for the phonefield module.
*/
/**
* Implements hook_field_schema().
*/
function phonefield_field_schema($field) {
return array(
'columns' => array(
'linklabel' => array(
'description' => 'Phone link label.',
'type' => 'varchar',
'length' => 63,
'not null' => FALSE,
'sortable' => TRUE,
),
'phonenumber' => array(
'description' => 'Phone number.',
'type' => 'varchar',
'length' => 63,
'not null' => FALSE,
'sortable' => TRUE,
),
'normalized' => array(
'description' => 'Normalized copy of Phone number.',
'type' => 'varchar',
'length' => 63,
'not null' => FALSE,
'sortable' => TRUE,
),
),
);
}
Functions
Name | Description |
---|---|
phonefield_field_schema | Implements hook_field_schema(). |