uc_global_quote.install in Ubercart Global Quote 6
Same filename and directory in other branches
uc_global_quote installation file
File
uc_global_quote.installView source
<?php
/**
* @file
* uc_global_quote installation file
*/
/**
* Implementation of hook_schema().
*/
function uc_global_quote_schema() {
$schema['uc_global_quote'] = array(
'description' => '',
'fields' => array(
'qid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'zid' => array(
'type' => 'numeric',
'not null' => FALSE,
),
'min' => array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => TRUE,
'default' => 0.0,
),
'max' => array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => TRUE,
'default' => 0.0,
),
'rate' => array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => TRUE,
'default' => 0.0,
),
),
'primary key' => array(
'qid',
),
);
return $schema;
}
/**
* Implementation of hook_install().
*/
function uc_global_quote_install() {
drupal_install_schema('uc_global_quote');
}
/**
* Implementation of hook_uninstall().
*/
function uc_global_quote_uninstall() {
drupal_uninstall_schema('uc_global_quote');
}
Functions
Name![]() |
Description |
---|---|
uc_global_quote_install | Implementation of hook_install(). |
uc_global_quote_schema | Implementation of hook_schema(). |
uc_global_quote_uninstall | Implementation of hook_uninstall(). |