function location_phone_schema in Location 7.4
Same name and namespace in other branches
- 6.3 contrib/location_phone/location_phone.install \location_phone_schema()
- 7.5 contrib/location_phone/location_phone.install \location_phone_schema()
- 7.3 contrib/location_phone/location_phone.install \location_phone_schema()
Implementation of hook_schema().
File
- contrib/
location_phone/ location_phone.install, line 11 - Installation routines.
Code
function location_phone_schema() {
$schema['location_phone'] = array(
'description' => 'location_phone.module {location} supplementary table.',
'fields' => array(
'lid' => array(
'description' => '{location}.lid',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'phone' => array(
'description' => 'Phone number',
'type' => 'varchar',
'length' => 31,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'lid',
),
);
return $schema;
}