function cmis_sync_nodeapi in CMIS API 6.3
Same name and namespace in other branches
- 6.4 cmis_sync/cmis_sync.module \cmis_sync_nodeapi()
- 6 cmis_sync/cmis_sync.module \cmis_sync_nodeapi()
- 6.2 cmis_sync/cmis_sync.module \cmis_sync_nodeapi()
Implementation of hook_nodeapi() for CMIS sync module.
1 string reference to 'cmis_sync_nodeapi'
- _cmis_sync_drupal_cmis_update in cmis_sync/
cmis_sync.drupal.inc - Handles Drupal to CMIS updates.
File
- cmis_sync/
cmis_sync.module, line 61
Code
function cmis_sync_nodeapi(&$node, $op, $teaser, $page) {
if (variable_get('cmis_sync_nodeapi_enabled', TRUE)) {
if (in_array($op, array(
'insert',
'update',
'delete',
)) && !isset($node->cmis_sync_disabled)) {
module_load_include('drupal.inc', 'cmis_sync');
try {
_cmis_sync_drupal_cmis_update(array(
'node' => $node,
'op' => $op,
));
} catch (CMISException $e) {
cmis_error_handler('cmis_sync_nodeapi', $e);
}
}
}
}