function userpoints_block_configure in User Points 7
Same name and namespace in other branches
- 7.2 userpoints.module \userpoints_block_configure()
Implements hook_block_configure().
File
- ./
userpoints.module, line 1496
Code
function userpoints_block_configure($delta) {
if ($delta > 1) {
$form['up_records'] = array(
'#type' => 'select',
'#title' => t('Number of users to display'),
'#default_value' => variable_get('userpoints_block_up_records_' . $delta, 10),
'#options' => array(
1 => 1,
5 => 5,
10 => 10,
15 => 15,
20 => 20,
30 => 30,
40 => 40,
50 => 50,
60 => 60,
70 => 70,
80 => 80,
90 => 90,
100 => 100,
200 => 200,
),
'#description' => t('Limit the number of users displayed to this value'),
);
return $form;
}
}