You are here

function user_activity_rules_default_action_submit in Heartbeat 6.2

Action drupal message configuration form.

@desc Update heartbeat_messages to synchronize, and avoid separate versions of messages and message_concats

1 call to user_activity_rules_default_action_submit()
friendlist_activity_rules_action_submit in user_activity/modules/friendlist_activity/friendlist_activity.rules.inc
Action drupal message configuration form.

File

user_activity/user_activity.rules.inc, line 133

Code

function user_activity_rules_default_action_submit(&$settings, $form, $form_state) {
  $params = $form_state['values']['settings'];
  db_query("UPDATE {heartbeat_messages} SET message ='%s', message_concat = '%s', variables = '%s' \n    WHERE event = '%s'", $params['message_param'], $params['message_concat_param'], $params['variables_param'], $params['event_param']);
}