function message_action_assign_message_instance_to_realm in Message 6
Action: Assign a message instance to realm.
File
- includes/
message.rules.inc, line 183 - Rules integration for the Message module.
Code
function message_action_assign_message_instance_to_realm($message_instance, $settings) {
$plugin = message_get_plugin_message($settings['plugin_name']);
$realm = new stdClass();
$realm->iid = $message_instance->iid;
$realm->realm = $plugin['realm'];
$realm->realm_id = $settings['realm_id'];
message_realm_save($realm);
}