You are here

function weight_update_7207 in Weight 7.2

Remove unneeded weight field.

See also

weight_update_7201().

File

./weight.install, line 387

Code

function weight_update_7207() {
  if (field_info_field('weight')) {
    field_delete_field('weight');
    field_sync_field_status();
    $limit = variable_get('field_purge_batch_size', 10);
    field_purge_batch($limit);
  }
}