You are here

function wsfields_storage_field_storage_info in Web Service Data 7

Implements hook_field_storage_info().

The settings array stores the machine name of a wsconfig instance to load.

File

modules/wsfields_storage/wsfields_storage.module, line 97
Storage controller definitions

Code

function wsfields_storage_field_storage_info() {
  return array(
    'wsfields_storage' => array(
      'label' => t('Web Service Storage'),
      'description' => t('Stores fields via remote web service using REST.'),
      'settings' => array(
        'wsconfig_name' => '',
        // The machine-name of a wsconfig instance to load
        'translation' => FALSE,
        'propertymap' => array(
          'create' => array(),
          'read' => array(),
          'update' => array(),
          'delete' => array(),
        ),
        // Mapping of the placeholder elements in the CRUD paths to entity properties
        'processor' => '',
        // Data processor
        'remotekey' => '',
      ),
    ),
  );
}