Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/b7392f3b0ebc36635074 to your computer and use it in GitHub Desktop.
Save amitaibu/b7392f3b0ebc36635074 to your computer and use it in GitHub Desktop.
$project_node = node_load(12);
$message = message_create('upcoming_meeting');
$message_wrapper = entity_metadata_wrapper('message', $message);
$message_wrapper->field_meeting->set(2);
$message_wrapper->field_project->set(12);
return message_subscribe_send_message('node', $project_node, $message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment