function heartbeat_rules_default_action_submit in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 modules/heartbeat_rules/hrules.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 ./
heartbeat.rules.inc - Action drupal message configuration form.
File
- ./
heartbeat.rules.inc, line 234
Code
function heartbeat_rules_default_action_submit(&$settings, $form, $form_state) {
// dsm(func_get_args());
$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']);
}