1 field_test.storage.inc _field_test_storage_data($data = NULL)

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

File

core/modules/field/tests/field_test/field_test.storage.inc, line 71
Defines a field storage backend.

Code

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