You are here

function privatemsg_filter_inbox_rebuild_form in Privatemsg 7.2

Display confirmation message before rebuilding inbox tag.

1 string reference to 'privatemsg_filter_inbox_rebuild_form'
privatemsg_filter_menu in privatemsg_filter/privatemsg_filter.module
Implements hook_menu().

File

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

Code

function privatemsg_filter_inbox_rebuild_form() {
  $status = '<p>' . t('Newly sent messages are automatically tagged with a hidden system tag. To also have existing messages show up in the inbox, you need to process these by starting the rebuild process. Rebuilding may take some time if there are many messages. After rebuilding has completed messages will automatically show up in the inbox.') . '</p>';
  $form['status'] = array(
    '#markup' => $status,
  );
  $form['rebuild'] = array(
    '#type' => 'submit',
    '#value' => t('Rebuild inbox'),
  );
  return $form;
}