/**
 * Implements hook_uninstall().
 */
function user_visits_uninstall() {
  db_query("DELETE FROM {variables} WHERE name LIKE 'user_visits%%'");
}

should be

db_query("DELETE FROM {variable} WHERE name LIKE 'user_visits%%'");

Change variables to variable

CommentFileSizeAuthor
#2 unistallation-error-1823818-2.patch407 bytesnit3ch

Comments

Triumphent’s picture

Thanks AndreasST. Obviously a module that hasn't even been tested by the one who wrote it..! :(

nit3ch’s picture

Assigned: Unassigned » nit3ch
Status: Active » Needs review
StatusFileSize
new407 bytes

Tiny patch.

ptmkenny’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

This patch allows the variables to properly be removed.

  • sanduhrs committed bc779d5 on 7.x-1.x authored by nit3ch
    Issue #1823818 by nit3ch: Uninstallation error
    
sanduhrs’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Closed (fixed)

Commited, thx!