function heartbeat_rules_default_action in Heartbeat 6.4
Same name and namespace in other branches
- 6.3 heartbeat.rules.inc \heartbeat_rules_default_action()
heartbeat_rules_default_action Action Implementation: Log an activity. Default action for most common heartbeat message activities. @ToDo figure out what params mean / can do
Parameters
array $settings:
array form:
array with two arrays (set_info and variables):
5 string references to 'heartbeat_rules_default_action'
- friendlist_activity_rules_defaults in modules/
friendlist_activity/ friendlist_activity.rules_defaults.inc - Implementation of hook_rules_defaults();
- heartbeat_example_rules_defaults in modules/
heartbeat_example/ heartbeat_example.rules_defaults.inc - Implementation of hook_rules_defaults().
- hrules_rules_defaults in modules/
heartbeat_rules/ hrules.rules_defaults.inc - Implementation of hook_rules_defaults().
- og_activity_rules_defaults in modules/
og_activity/ og_activity.rules_defaults.inc - Implementation of hook_rules_defaults().
- shouts_rules_defaults in modules/
shouts/ shouts.rules_defaults.inc - Implementation of hook_rules_defaults().
File
- modules/
heartbeat_rules/ hrules.rules.inc, line 271 - Heartbeat rules definitions.
Code
function heartbeat_rules_default_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'], $settings['nid_param'], $settings['nid_target_param'], $settings['variables_param']);
}
return TRUE;
}