function privatemsg_block_configure

7-1 privatemsg.module privatemsg_block_configure($delta = '')
7-2 privatemsg.module privatemsg_block_configure($delta = '')

Implements hook_block_configure().

File

./privatemsg.module, line 1513
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;
  }
}