1 field_test.storage.inc field_test_field_storage_info()

Implements hook_field_storage_info().

File

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

Code

function field_test_field_storage_info() {
  return array(
    'field_test_storage' => array(
      'label' => t('Test storage'),
      'description' => t('Dummy test storage backend. Stores field values in the variable table.'),
    ),
    'field_test_storage_failure' => array(
      'label' => t('Test storage failure'),
      'description' => t('Dummy test storage backend. Always fails to create fields.'),
    ),
  );
}