hook_engines_get_put()
importexportapi/docs/developer/hooks/importexportapi.php, line 133
Define one or more 'get' or 'put' engines.
A nested array of formats, 'get' and 'put' engines, and function callbacks.
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_engines_get_put() {
return array(
'db' => array(
'title' => t('Database'),
'get' => array(
'callback' => 'importexportapi_db_get',
'build' => array('importexportapi_db_build' => array('get'), 'importexportapi_db_build_references' => array('get'))
),
'put' => array(
'callback' => 'importexportapi_db_put',
'build' => array('importexportapi_db_build' => array('put'), 'importexportapi_db_build_references' => array('put')),
'process' => array('importexportapi_db_put_resolve_alt_keys' => array())
)
),
'xml' => array(
'title' => t('XML (eXtensible Markup Language)'),
'get' => array(
'callback' => 'importexportapi_xml_get',
'build' => array('importexportapi_xml_build' => array('get')),
'build_alt_key' => array('importexportapi_xml_build_alt_key' => array('get'))
),
'put' => array(
'callback' => 'importexportapi_xml_put',
'build' => array('importexportapi_xml_build' => array('put')),
'build_alt_key' => array('importexportapi_xml_build_alt_key' => array('put'))
)
),
'csv' => array(
'title' => t('CSV (Comma Separated Values)'),
'get' => array(
'callback' => 'importexportapi_csv_get',
'build' => array('importexportapi_csv_build' => array('get'))
),
'put' => array(
'callback' => 'importexportapi_csv_put',
'build' => array('importexportapi_csv_build' => array('put'))
)
)
);
}
?>