function user_activity_rules_default_action in Heartbeat 6.2
Action Implementation: Log an activity
@ToDo figure out what params mean / can do
Parameters
array $settings:
array form:
array with two arrays (set_info and variables):
2 string references to 'user_activity_rules_default_action'
- user_activity_comment_defaults in user_activity/
user_activity.rules_defaults.inc - Function to work with comment events
- user_activity_node_defaults in user_activity/
user_activity.rules_defaults.inc - Function to work with rules on node events
File
- user_activity/
user_activity.rules.inc, line 148
Code
function user_activity_rules_default_action($settings, $form = array(), $event_info = array()) {
// dsm(func_get_args());
$data = array();
if (is_array($settings)) {
$data['uid'] = $settings['uid_param'];
$data['uid_target'] = $settings['uid_target_param'];
$data['nid_target'] = $settings['nid_target_param'];
$data['message'] = t($settings['message_param']);
$data['message_concat'] = t($settings['message_concat_param']);
$data['variables'] = $settings['variables_param'];
$data['event'] = $settings['event_param'];
$data['hid'] = heartbeat_event_id($settings['event_param']);
}
user_activity_log($data);
}