function _field_test_storage_data

Helper function: stores or retrieves data from the 'storage backend'.

9 calls to _field_test_storage_data()
field_test_field_attach_delete_bundle in modules/field/tests/field_test.storage.inc
Implements hook_field_attach_delete_bundle().
field_test_field_attach_rename_bundle in modules/field/tests/field_test.storage.inc
Implements hook_field_attach_rename_bundle().
field_test_field_storage_create_field in modules/field/tests/field_test.storage.inc
Implements hook_field_storage_create_field().
field_test_field_storage_delete_field in modules/field/tests/field_test.storage.inc
Implements hook_field_storage_delete_field().
field_test_field_storage_delete_instance in modules/field/tests/field_test.storage.inc
Implements hook_field_storage_delete_instance().

... See full list

File

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

Code

function _field_test_storage_data($data = NULL) {
    if (!isset($data)) {
        return variable_get('field_test_storage_data', array());
    }
    else {
        variable_set('field_test_storage_data', $data);
    }
}

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