function shoutbox_points_userpoints in Shoutbox 7.2
Same name and namespace in other branches
- 6.2 shoutbox_points/shoutbox_points.module \shoutbox_points_userpoints()
- 7 shoutbox_points/shoutbox_points.module \shoutbox_points_userpoints()
Implements hook_userpoints().
File
- shoutbox_points/
shoutbox_points.module, line 6
Code
function shoutbox_points_userpoints($op, $params = array()) {
switch ($op) {
case 'setting':
$form['shoutbox'] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#title' => t('!Points for posting shouts', userpoints_translation()),
);
$form['shoutbox']['shoutbox_points_delete_points'] = array(
'#type' => 'checkbox',
'#title' => t('Take away !points on shout delete', array_merge(userpoints_translation())),
'#default_value' => variable_get('shoutbox_points_delete_points', 1),
);
$form['shoutbox']['shoutbox_points_amount'] = array(
'#type' => 'textfield',
'#title' => t('!Points for posting a shout', array_merge(userpoints_translation())),
'#default_value' => variable_get('shoutbox_points_amount', '0'),
'#size' => 5,
'#maxlength' => 5,
);
return $form;
}
}