You are here

function hook_wsconfig_connector_info in Web Service Data 7

Register as a connector module

Return value

array Returns an array definining the function callbacks for all supported CRUD operations

3 invocations of hook_wsconfig_connector_info()
wsconfig_flush_caches in modules/wsconfig/wsconfig.module
Implements hook_flush_caches().
wsconfig_modules_disabled in modules/wsconfig/wsconfig.module
Implements hook_modules_disabled().
wsconfig_modules_enabled in modules/wsconfig/wsconfig.module
Implements hook_modules_enabled().

File

modules/wsconfig/wsconfig.api.php, line 15
Describe the file

Code

function hook_wsconfig_connector_info() {

  // Array of functions to call for each CRUD task
  // Since modules can create multiple connectors, add a unique ID to define
  // each set of CRUD operations. Typically, this can be your module name if
  // you only implement one connector. Otherwise, adding mymodule_rest or
  // mymodule_soap is another appropriate naming convention
  // The array should contain at minimum one CRUD operation and the human
  // readable name of your connector. Do NOT wrap the name in the t() function
  // since it will be translated automatically later on.
  // The keys in the array must match the following:
  return array(
    'myconnectorid' => array(
      'name' => 'Display Name for MyConnector',
      'class' => 'myprocessorclassname',
    ),
  );
}