function civicrm_entity_actions_case_delete_action in CiviCRM Entity 7.2
File
- modules/
civicrm_entity_actions/ civicrm_entity_actions_case.inc, line 61
Code
function civicrm_entity_actions_case_delete_action($entity, $context = array()) {
$info = entity_get_info($context['entity_type']);
$entity_id = $entity->{$info['entity keys']['id']};
$base_url = str_replace('_', '-', $context['entity_type']);
// civicrm-case
civicrm_entity_drupal_goto($base_url . '/' . $entity_id . '/delete');
}