You are here

function _field_test_storage_data in Drupal 7

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
Defines a field storage backend.

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);
  }
}