You are here

function field_test_field_storage_delete_field in SimpleTest 7

Implement hook_field_storage_delete_field().

File

tests/field_test.module, line 1066

Code

function field_test_field_storage_delete_field($field) {
  $data = _field_test_storage_data();
  $field_data =& $data[$field['id']];
  foreach (array(
    'current',
    'revisions',
  ) as $sub_table) {
    foreach ($field_data[$sub_table] as &$row) {
      $row->deleted = TRUE;
    }
  }
  _field_test_storage_data($data);
}