You are here

function nodejs_actions_get_action in Node.js integration 7

Try to get the action for the given trigger context.

Parameters

mixed $context:

Return value

mixed

3 calls to nodejs_actions_get_action()
nodejs_actions_comment_action in nodejs_actions/nodejs_actions.module
Comment object action callback.
nodejs_actions_node_action in nodejs_actions/nodejs_actions.module
Node object action callback.
nodejs_actions_user_action in nodejs_actions/nodejs_actions.module
User object action callback.

File

nodejs_actions/nodejs_actions.module, line 29

Code

function nodejs_actions_get_action($context) {
  $triggers = nodejs_actions_get_triggers();
  if (isset($context['hook'], $triggers[$context['hook']])) {
    return $triggers[$context['hook']];
  }
  return FALSE;
}