Commit 0c970539 authored by frjo's avatar frjo
Browse files

Use db_delete() in uninstall to delete colorbox_* variables.

parent 039e8a7f
......@@ -47,7 +47,7 @@ function colorbox_requirements($phase) {
* Implements hook_uninstall().
*/
function colorbox_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'colorbox_%'");
db_delete('variable')->condition('name', db_like('colorbox_') . '%', 'LIKE')->execute();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment