You are here

function casetracker_actions_take_case_action in Case Tracker 7

Same name and namespace in other branches
  1. 6 casetracker_actions/casetracker_actions.module \casetracker_actions_take_case_action()

Take Case action behavior.

File

casetracker_actions/casetracker_actions.module, line 101
casetracker_actions.module

Code

function casetracker_actions_take_case_action(&$object, $context = array()) {
  global $user;
  $nid = _casetracker_actions_get_nid($object->nid, $context['nid']);
  _casetracker_actions_act($nid, 'assign_to', $user->name);
}