It's time to update the Phone Number Validator to support version 4.7.

In the uninstall function, I tidily remove the settings that get added during install. This looks as follows:

'DELETE FROM civicrm_setting WHERE group_name = "com.civifirst.phonenumbervalidator"'

But the group_name field has been removed. How can we neatly remove settings entries in a way that supports 4.6 and 4.7?



1 Answer 1


The group_name in <=v4.6 was deceptive -- in some circumstances, it provided namespacing, but it in others it didn't, so the safe play has always been to use some kind of name-prefixing.

If the setting names are prefixed, then do something like:

DELETE FROM civicrm_setting WHERE name LIKE "phonenumbervalidator_%"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.