Last active
December 29, 2015 21:11
-
-
Save nvahalik/1862eefa43ff3a6f3d22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
$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