Delete the configuration file on module uninstallation

/**
 * Implements hook_uninstall().
 */
function username_policy_uninstall() {
  variable_del('username_policy_pattern');
}

look like wrong variable is using on module uninstallation

CommentFileSizeAuthor
#4 2714095-4.patch332 bytesxaiwant

Comments

xaiwant created an issue. See original summary.

xaiwant’s picture

Issue summary: View changes
xaiwant’s picture

Assigned: n.kishorekumar » xaiwant
xaiwant’s picture

Status: Needs work » Needs review
StatusFileSize
new332 bytes

Variable replaced

- - variable_del('username_policy_pattern');
++ variable_del('username_policy');

Needs Review

xaiwant’s picture

Assigned: xaiwant » n.kishorekumar
heykarthikwithu’s picture

Status: Needs review » Reviewed & tested by the community
n.kishorekumar’s picture

Title: Delete the configuration file on module uninstallation » Delete the configurations on module uninstallation
Assigned: n.kishorekumar » Unassigned

heykarthikwithu’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.