1 field_sql_storage.install | field_sql_storage_schema() |
Implements hook_schema().
File
- core/
modules/ field/ modules/ field_sql_storage/ field_sql_storage.install, line 10 - Install, update and uninstall functions for the field_sql_storage module.
Code
function field_sql_storage_schema() {
$schema = array();
// Dynamic (data) tables.
backdrop_load('module', 'field_sql_storage');
module_load_include('inc', 'field', 'field.crud');
$fields = field_read_fields(array(), array('include_deleted' => TRUE, 'include_inactive' => TRUE));
foreach ($fields as $field) {
if ($field['storage']['type'] == 'field_sql_storage') {
$schema += _field_sql_storage_schema($field);
}
}
return $schema;
}