Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
$type = 'commerce_order_order_confirmation';
$order = commerce_order_load(1);
$message = message_create($type);
$wrapper = entity_metadata_wrapper('message', $message);
$wrapper->message_commerce_order->set($order);
$wrapper->save();
dpm($wrapper->value());
// Grab the message id from this and then put it in the message_load below.
*/
$message = message_load(67);
message_notify_send_message($message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.