function privatemsg_filter_inbox_rebuid_form_submit

7-1 privatemsg_filter.admin.inc privatemsg_filter_inbox_rebuid_form_submit($form, &$form_state)
6-2 privatemsg_filter.admin.inc privatemsg_filter_inbox_rebuid_form_submit($form, &$form_state)

Submit callback for inbox rebuild form.

File

privatemsg_filter/privatemsg_filter.admin.inc, line 207
Admin menu callbacks for privatemsg_filter module.

Code

function privatemsg_filter_inbox_rebuid_form_submit($form, &$form_state) {
  $batch = array(
    'title' => t('Rebuilding inbox'),
    'operations' => array(array('privatemsg_filter_inbox_rebuild_process', array())),
    'finished' => 'privatemsg_filter_inbox_rebuild_finished',
    'file' => drupal_get_path('module', 'privatemsg_filter') . '/privatemsg_filter.admin.inc',
  );
  batch_set($batch);
}