You are here

function privatemsg_block_configure in Privatemsg 7.2

Same name and namespace in other branches
  1. 7 privatemsg.module \privatemsg_block_configure()

Implements hook_block_configure().

File

./privatemsg.module, line 1550
Allows users to send private messages to other users.

Code

function privatemsg_block_configure($delta = '') {
  if ($delta == 'privatemsg-new') {
    $form['notification'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display block when there are no unread messages'),
      '#default_value' => variable_get('privatemsg_no_messages_notification', 0),
      '#description' => t('Enable this to have this block always displayed, even if there are no unread messages'),
    );
    return $form;
  }
}