You are here

function data_delete_action in Data 6

File

data_vbo/data_vbo.module, line 53

Code

function data_delete_action($datum, $context) {
  if (!isset($context['object_info'])) {
    return;
  }
  $object_info = $context['object_info'];
  $handler = data_get_handler($object_info['base_table']);
  if (!$handler) {
    return;
  }
  $handler
    ->delete(array(
    $object_info['oid'] => $datum->{$object_info['oid']},
  ));
}