You are here

function messaging_simple_view_form_submit in Messaging 7

Message form submit

File

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

Code

function messaging_simple_view_form_submit($form, &$form_state) {
  db_delete('messaging_simple')
    ->condition('mgid', $form_state['values']['message']->mgid)
    ->execute();
  $user_id = $form_state['values']['message']->uid;
  $form_state['redirect'] = 'user/' . $user_id . '/messages';
  drupal_set_message(t('The message has been deleted.'));
}