You are here

function heartbeat_rules_default_action_submit in Heartbeat 6.4

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

Action drupal message configuration form.

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

1 call to heartbeat_rules_default_action_submit()
heartbeat_rules_users_action_submit in modules/heartbeat_rules/hrules.rules.inc
Action drupal message configuration form.

File

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

Code

function heartbeat_rules_default_action_submit(&$settings, $form, $form_state) {
  $params = $form_state['values']['settings'];
  $vars = $params['variables_param'];
  $vars = eregi_replace("\r\n", "-|-", $vars);
  $vars = eregi_replace("=", "=|=", $vars);
  $settings['variables_param'] = $vars;

  //db_query("UPDATE {heartbeat_messages} SET variables = '%s' WHERE message_id = '%s'", $vars, $params['message_id_param']);
}