6 * Installation file for partner management.
10 * Implementation of hook_install().
12 function partner_install() {
13 drupal_install_schema('partner');
17 * Implementation of hook_uninstall().
19 function partner_uninstall() {
20 drupal_uninstall_schema('partner');
24 * Implementation of hook_schema().
26 function partner_schema() {
27 $schema['partner'] = array(
28 'description' => 'Stores partner data',
34 'description' => 'Primary Key: Unique partner ID.',
40 'description' => 'Name.',
47 'description' => 'Favourite beer.',
51 'favourite' => array('favourite'),
53 'unique keys' => array(
54 'name' => array('name'),
56 'primary key' => array('pid'),
58 $schema['address'] = array(
59 'description' => 'Stores partner data',
65 'description' => 'Primary Key: Unique address ID.',
71 'description' => 'Partner ID this address belongs to.',
77 'description' => 'Zip code.',
83 'description' => 'City.',
88 'description' => 'Street address.',
94 'description' => 'Weight.',
98 'pid' => array('pid'),
99 'zipcode' => array('zipcode'),
100 'city' => array('city'),
101 'weight' => array('weight'),
103 'primary key' => array('aid'),