function hook_field_storage_info

Expose Field API storage backends.

Return value

An array describing the storage backends implemented by the module. The keys are storage backend names. To avoid name clashes, storage backend names should be prefixed with the name of the module that exposes them. The values are arrays describing the storage backend, with the following key/value pairs:

  • label: The human-readable name of the storage backend.
  • description: A short description for the storage backend.
  • settings: An array whose keys are the names of the settings available for the storage backend, and whose values are the default values for those settings.

Related topics

2 functions implement hook_field_storage_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_sql_storage_field_storage_info in drupal/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_info().
field_test_field_storage_info in drupal/modules/field/tests/field_test.storage.inc
Implements hook_field_storage_info().
2 invocations of hook_field_storage_info()
field_associate_fields in drupal/modules/field/field.module
Allows a module to update the database for fields and columns it controls.
_field_info_collate_types in drupal/modules/field/field.info.inc
Collates all information on field types, widget types and related structures.

File

drupal/modules/field/field.api.php, line 1666
Hooks provided by the Field module.

Code

function hook_field_storage_info() {
  return array(
    'field_sql_storage' => array(
      'label' => t('Default SQL storage'),
      'description' => t('Stores fields in the local SQL database, using per-field tables.'),
      'settings' => array(),
    ),
  );
}