| 1 |
<?php
|
| 2 |
|
| 3 |
function activity_log_admin_settings() {
|
| 4 |
|
| 5 |
$form['activity_log_no_duplicate_seconds'] = array(
|
| 6 |
'#title' => t('Seconds before an identical activity can be logged again'),
|
| 7 |
'#type' => 'textfield',
|
| 8 |
'#size' => 8,
|
| 9 |
'#default_value' => variable_get('activity_log_no_duplicate_seconds',3600)
|
| 10 |
);
|
| 11 |
$form['activity_log_grouping_seconds'] = array(
|
| 12 |
'#title' => t('Maximum gap (in seconds) for the same activity to be grouped together'),
|
| 13 |
'#type' => 'textfield',
|
| 14 |
'#size' => 8,
|
| 15 |
'#default_value' => variable_get('activity_log_grouping_seconds',3600)
|
| 16 |
);
|
| 17 |
$form['activity_log_grouping_how_many'] = array(
|
| 18 |
'#title' => t('Maximum number of items that can be grouped'),
|
| 19 |
'#type' => 'textfield',
|
| 20 |
'#size' => 8,
|
| 21 |
'#default_value' => variable_get('activity_log_grouping_how_many',5)
|
| 22 |
);
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
return system_settings_form($form);
|
| 27 |
}
|
| 28 |
|
| 29 |
?>
|