You are here

function url_update_7100 in URL field 7

Fix incorrect default values of URL field instances.

File

./url.install, line 33

Code

function url_update_7100() {
  $fields = field_read_fields(array(
    'type' => 'url',
  ));
  foreach ($fields as $field) {
    $instances = field_read_instances(array(
      'field_name' => $field['field_name'],
    ));
    foreach ($instances as $instance) {
      _url_fix_field_default_value($field, $instance);
    }
  }
}