1 field_test.storage.inc field_test_field_storage_details($field)

Implements hook_field_storage_details().

File

core/modules/field/tests/field_test/field_test.storage.inc, line 28
Defines a field storage backend.

Code

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

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