You are here

function heartbeat_rules_users_action in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 heartbeat.rules.inc \heartbeat_rules_users_action()

Action Implementation: Log an activity between two users.

@ToDo figure out what params mean / can do

Parameters

array $settings:

array form:

array with two arrays (set_info and variables):

1 string reference to 'heartbeat_rules_users_action'
friendlist_activity_rules_defaults in modules/friendlist_activity/friendlist_activity.rules_defaults.inc
Implementation of hook_rules_defaults();

File

modules/heartbeat_rules/hrules.rules.inc, line 316
Heartbeat rules definitions.

Code

function heartbeat_rules_users_action($settings, $form = array(), $event_info = array()) {
  if (is_array($settings)) {
    heartbeat_api_log($settings['message_id_param'], $settings['uid_param'], $settings['uid_target_param'], 0, 0, $settings['variables_param'] . '-|-duplicate=|=1-|-');
  }
  return TRUE;
}