You are here

function privatemsg_userpoints in Privatemsg 5.3

Same name and namespace in other branches
  1. 5 privatemsg.module \privatemsg_userpoints()

Implementation of hook_userpoints.

1 string reference to 'privatemsg_userpoints'
_privatemsg_send in ./privatemsg.module

File

./privatemsg.module, line 2106

Code

function privatemsg_userpoints($op, $new_points = 0, $uid = 0, $event = '') {
  switch ($op) {
    case 'setting':
      $form['privatemsg_userpoints'] = array(
        '#type' => 'textfield',
        '#title' => t('Points for sending a private message'),
        '#default_value' => variable_get('privatemsg_userpoints', 0),
      );
      return $form;
  }
}