You are here

function messaging_simple_user_message_submit in Messaging 6.4

Same name and namespace in other branches
  1. 5 messaging_simple/messaging_simple.module \messaging_simple_user_message_submit()
  2. 6 messaging_simple/messaging_simple.module \messaging_simple_user_message_submit()
  3. 6.2 messaging_simple/messaging_simple.module \messaging_simple_user_message_submit()
  4. 6.3 messaging_simple/messaging_simple.module \messaging_simple_user_message_submit()

Message form submit

File

messaging_simple/messaging_simple.module, line 134
Simple messaging using html page. Messaging method plug-in

Code

function messaging_simple_user_message_submit($form, &$form_state) {
  db_query("DELETE FROM {messaging_simple} WHERE msid = %d", $form_state['values']['message']->msid);
  drupal_set_message(t('The message has been deleted.'));
}