function _wsfields_storage_test_field_definitions in Web Service Data 7
Test field definitions
1 call to _wsfields_storage_test_field_definitions()
- WsfieldsStorageTestCase::setUp in modules/
wsfields_storage/ wsfields_storage.test - Sets up a Drupal site for running functional and integration tests.
File
- modules/
wsfields_storage/ wsfields_storage.test, line 167 - Describe the file
Code
function _wsfields_storage_test_field_definitions() {
return array(
'field_nodetitle' => array(
'field_name' => 'field_nodetitle',
'label' => t('Node Title'),
'type' => 'text',
'locked' => FALSE,
'translatable' => FALSE,
'entity_types' => array(
'user',
),
'storage' => array(
'type' => 'wsfields_storage',
'settings' => array(
'wsconfig_name' => 'testconfig',
'propertymap' => array(
'read' => array(
'%nid' => 'uid',
),
),
'processor' => 'WsDataNode',
'remotekey' => 'title',
),
),
),
);
}