function field_sql_storage_schema
Implements hook_schema().
File
-
modules/
field/ modules/ field_sql_storage/ field_sql_storage.install, line 11
Code
function field_sql_storage_schema() {
$schema = array();
// Dynamic (data) tables.
if (db_table_exists('field_config')) {
$fields = field_read_fields(array(), array(
'include_deleted' => TRUE,
'include_inactive' => TRUE,
));
drupal_load('module', 'field_sql_storage');
foreach ($fields as $field) {
if ($field['storage']['type'] == 'field_sql_storage') {
$schema += _field_sql_storage_schema($field);
}
}
}
return $schema;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.