You are here

function field_test_field_storage_details in SimpleTest 7

Implement hook_field_storage_details().

File

tests/field_test.module, line 706

Code

function field_test_field_storage_details($field, $instance) {
  $details = array();

  // Add field columns.
  $columns = array();
  foreach ((array) $field['columns'] as $column_name => $attributes) {
    $columns[$column_name] = $column_name;
  }
  return array(
    'drupal_variables' => array(
      'field_test_storage_data[FIELD_LOAD_CURRENT]' => $columns,
      'field_test_storage_data[FIELD_LOAD_REVISION]' => $columns,
    ),
  );
}