function field_test_field_storage_info

7.x field_test.storage.inc field_test_field_storage_info()

Implements hook_field_storage_info().

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

File

drupal-7.x/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.'),
    ),
  );
}