Closed (fixed)
Project:
Indeed Search
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Feb 2017 at 18:53 UTC
Updated:
9 Mar 2017 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vishwac9 commentedProposed solutions :-
Implement hook_uninstall().
Comment #3
vishwac9 commentedInorder to fix this issue there is another issue regarding the .install file name which needs to be fixed first. Incorrect file name
Comment #4
dishabhadra commentedHi Vishwa,
For above issue you have mention Proposed solutions, So according to me this is not as per drupal Standards.
In db_delete you have mention condition('name' , 'indeed_%' , 'like') so there is risk in this condition, if we have any other module whose name is similiar to indeed and they have simillar kind of variable then as per this query they will also deleted.
So we can use variable_del($name) function and delete the variable.
Else we should rename the Variable name to 'modulename_country'. Eg. 'indeed_search_country' instead of 'indeed_country'.
Comment #5
vishwac9 commentedhi dishabhadra you have a point, just thought instead of writing 7 variable delete which would again involve 7 different queries to the database to delete the variables lets do it in one single query.
Comment #6
swarad07@Disha is correct, the correct way to do it would be via variable_del(). The API does more than just a delete query.
Comment #7
jaykandariComment #8
jaykandariImplemented hook_uninstall() in indeed_serach.install file.
apply this patch before committing #2851891: Incorrect filename .
Comment #9
dishabhadra commented@JayKandari : Thank you for the patch. It looks good to me.
Comment #10
gaurav.kapoor commented