1 contact.install | contact_update_1002() |
Set default value for new 'Phone' field setting.
Related topics
File
- core/
modules/ contact/ contact.install, line 84 - Install, update and uninstall functions for the contact module.
Code
function contact_update_1002() {
$config = config('contact.settings');
if ($config->get('phone') === NULL) {
$config->set('phone', '');
$config->save();
}
}