Closed (fixed)
Project:
FZ152
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2017 at 08:49 UTC
Updated:
28 Jun 2017 at 10:04 UTC
Jump to comment: Most recent
I may be mistaken but it seems that construction «variable_del('fz152_*');» doesn't work for deleting multiple variables using wildcard.
It's better to use database query like the following:
db_delete('variable')
->condition('name', 'fz152_%','LIKE')
->execute();
cache_clear_all('variables', 'cache_bootstrap');
Comments
Comment #3
niklanThank you for your contribution. The fix was applied.