function field_test_field_storage_details

Implements hook_field_storage_details().

File

modules/field/tests/field_test.storage.inc, line 28

Code

function field_test_field_storage_details($field) {
    $details = array();
    // Add field columns.
    $columns = array();
    foreach ((array) $field['columns'] as $column_name => $attributes) {
        $columns[$column_name] = $column_name;
    }
    return array(
        'drupal_variables' => array(
            'field_test_storage_data[FIELD_LOAD_CURRENT]' => $columns,
            'field_test_storage_data[FIELD_LOAD_REVISION]' => $columns,
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.