Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing install errors

  • Loading branch information...
commit d41dd20e309180108b1a9e62809a384132671d7b 1 parent 1e7a77c
@jjeff jjeff authored
Showing with 10 additions and 7 deletions.
  1. +5 −3 shurly.install
  2. +5 −4 shurly_service/shurly_service.install
View
8 shurly.install
@@ -9,6 +9,7 @@
* Implement hook_schema().
*/
function shurly_schema() {
+ $schema = array();
$schema['shurly'] = array(
'description' => t('URL redirects for the Shurly module'),
'fields' => array(
@@ -122,7 +123,6 @@ function shurly_schema() {
*/
function shurly_install() {
drupal_install_schema('shurly');
- drupal_install_schema('shurly_flood');
}
function shurly_update_6100() {
@@ -142,8 +142,10 @@ function shurly_update_6100() {
function shurly_uninstall() {
// Remove tables.
drupal_uninstall_schema('shurly');
- drupal_uninstall_schema('shurly_flood');
// Remove variables.
-
+ variable_del('shurly_throttle');
+ variable_del('shurly_length');
+ variable_del('shurly_counter');
+ variable_del('shurly_index');
}
View
9 shurly_service/shurly_service.install
@@ -32,7 +32,7 @@ function shurly_service_schema() {
* Implement hook_install().
*/
function shurly_service_install() {
- drupal_install_schema('shurly_keys');
+ drupal_install_schema('shurly_service');
}
@@ -52,8 +52,9 @@ function shurly_service_update_6100() {
*/
function shurly_service_uninstall() {
// Remove tables.
- drupal_uninstall_schema('shurly_keys');
-
- // Remove variables.
+ drupal_uninstall_schema('shurly_service');
+ // No variables to remove
+
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.