Skip to content

Instantly share code, notes, and snippets.

@nvahalik
Last active December 29, 2015 21:11
Show Gist options
  • Save nvahalik/1862eefa43ff3a6f3d22 to your computer and use it in GitHub Desktop.
Save nvahalik/1862eefa43ff3a6f3d22 to your computer and use it in GitHub Desktop.
/*
$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