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 modules/
field/ modules/ field_sql_storage/ field_sql_storage.module - Implements hook_field_storage_info().
- field_test_field_storage_info in modules/
field/ tests/ field_test.storage.inc - Implements hook_field_storage_info().
2 invocations of hook_field_storage_info()
- field_associate_fields in modules/
field/ field.module - Allows a module to update the database for fields and columns it controls.
- _field_info_collate_types in modules/
field/ field.info.inc - Collates all information on field types, widget types and related structures.
File
-
modules/
field/ field.api.php, line 1692
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(),
),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.