| 1 |
<?php |
<?php |
| 2 |
// |
// |
| 3 |
// $Id: kudos.install,v 1.6.2.4 2008/12/26 02:14:02 tjwnyc Exp $ |
// $Id: kudos.install,v 1.6.2.5 2009/03/09 02:15:57 tjwnyc Exp $ |
| 4 |
// |
// |
| 5 |
|
|
| 6 |
/** |
/** |
| 50 |
'label' => array('type' => 'varchar', 'length' => 50, 'not null' => TRUE), |
'label' => array('type' => 'varchar', 'length' => 50, 'not null' => TRUE), |
| 51 |
'status' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 1, 'size' => 'tiny'), |
'status' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 1, 'size' => 'tiny'), |
| 52 |
'comments' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'), |
'comments' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'), |
| 53 |
|
'nodes' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 1, 'size' => 'tiny'), |
| 54 |
'icon_give' => array('type' => 'varchar', 'length' => 150, 'not null' => TRUE), |
'icon_give' => array('type' => 'varchar', 'length' => 150, 'not null' => TRUE), |
| 55 |
'icon_rescind' => array('type' => 'varchar', 'length' => 150, 'not null' => TRUE), |
'icon_rescind' => array('type' => 'varchar', 'length' => 150, 'not null' => TRUE), |
| 56 |
'icon_disabled' => array('type' => 'varchar', 'length' => 150, 'not null' => TRUE), |
'icon_disabled' => array('type' => 'varchar', 'length' => 150, 'not null' => TRUE), |
| 98 |
* Implementation of hook_uninstall(). |
* Implementation of hook_uninstall(). |
| 99 |
*/ |
*/ |
| 100 |
function kudos_uninstall() { |
function kudos_uninstall() { |
| 101 |
drupal_uninstall_schema('kudos_granted'); |
drupal_uninstall_schema('kudos'); |
|
drupal_uninstall_schema('kudos_info'); |
|
|
drupal_uninstall_schema('kudos_info_types'); |
|
|
drupal_uninstall_schema('kudos_cached'); |
|
| 102 |
db_query("DELETE FROM {variable} WHERE name like 'kudos%'"); |
db_query("DELETE FROM {variable} WHERE name like 'kudos%'"); |
| 103 |
}//end - function |
}//end - function |