You are here

function contactinfo_update_7100 in Contact Info 7

Add a default value for Extended Address, to prevent warnings.

File

./contactinfo.install, line 18
Installation file for the Contact Information module.

Code

function contactinfo_update_7100(&$sandbox) {
  $contactinfo = variable_get('contactinfo', FALSE);
  if ($contactinfo && is_array($contactinfo) && !isset($contactinfo['adr']['extended-address'])) {
    $contactinfo['adr']['extended-address'] = '';
    variable_set('contactinfo', $contactinfo);
  }
}