function _field_test_storage_data in SimpleTest 7
Helper function: store or retrieve data from the 'storage backend'.
10 calls to _field_test_storage_data()
- field_test_field_attach_delete_bundle in tests/
field_test.module - Implement hook_field_attach_delete_bundle().
- field_test_field_attach_rename_bundle in tests/
field_test.module - Implement hook_field_attach_rename_bundle().
- field_test_field_storage_create_field in tests/
field_test.module - Implement hook_field_storage_create_field().
- field_test_field_storage_delete_field in tests/
field_test.module - Implement hook_field_storage_delete_field().
- field_test_field_storage_delete_instance in tests/
field_test.module - Implement hook_field_storage_delete_instance().
File
- tests/
field_test.module, line 749
Code
function _field_test_storage_data($data = NULL) {
if (is_null($data)) {
return variable_get('field_test_storage_data', array());
}
else {
variable_set('field_test_storage_data', $data);
}
}