You are here

function field_test_field_storage_info in Drupal 7

Implements hook_field_storage_info().

1 call to field_test_field_storage_info()
FieldInfoTestCase::testFieldInfo in modules/field/tests/field.test
Test that field types and field definitions are correcly cached.

File

modules/field/tests/field_test.storage.inc, line 12
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.'),
    ),
  );
}