1 field.api.php 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

File

core/modules/field/field.api.php, line 1715
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(),
    ),
  );
}