uc_webform_pane.install in Ubercart Webform Checkout Pane 6
Same filename and directory in other branches
Install hooks for uc_webform_pane.
File
uc_webform_pane.installView source
<?php
/**
* @file
* Install hooks for uc_webform_pane.
*/
/**
* Implementation of hook_install().
*/
function uc_webform_pane_install() {
// Create tables.
drupal_install_schema('uc_webform_pane');
}
/**
* Implementation of hook_schema().
*/
function uc_webform_pane_schema() {
$schema['uc_webform_pane'] = array(
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'cid_order_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'nid' => array(
'nid',
),
),
'primary key' => array(
'nid',
'cid_order_id',
),
);
return $schema;
}
/**
* Implementation of hook_uninstall().
*/
function uc_webform_pane_uninstall() {
// Remove tables.
drupal_uninstall_schema('uc_webform_pane');
}
Functions
Name![]() |
Description |
---|---|
uc_webform_pane_install | Implementation of hook_install(). |
uc_webform_pane_schema | Implementation of hook_schema(). |
uc_webform_pane_uninstall | Implementation of hook_uninstall(). |