You are here

function message_ui_delete_multiple_messages in Message UI 7

Delete multiple messages

1 string reference to 'message_ui_delete_multiple_messages'
message_ui_menu in ./message_ui.module
Implements hook_menu().

File

./message_ui.module, line 838
Main file for the message UI module.

Code

function message_ui_delete_multiple_messages($form, $form_state) {
  $types = message_ui_get_types();
  $form['types'] = array(
    '#type' => 'select',
    '#title' => t('Message types'),
    '#description' => t('Select the message type your would like to delete message from.'),
    '#options' => $types,
    '#multiple' => TRUE,
    '#required' => TRUE,
  );
  $form['actions'] = array(
    '#type' => 'actions',
    'submit' => array(
      '#type' => 'submit',
      '#value' => t('Send'),
    ),
  );
  return $form;
}