function user_activity_admin_settings in Heartbeat 6.2
Function to maintain and administer specific settings
Return value
settingsform
1 string reference to 'user_activity_admin_settings'
- user_activity_menu in user_activity/
user_activity.module - Implementation of hook_menu().
File
- user_activity/
user_activity.admin.inc, line 10
Code
function user_activity_admin_settings() {
$form['user_activity_no_duplicate_seconds'] = array(
'#title' => t('Seconds before an identical activity can be logged again'),
'#type' => 'textfield',
'#size' => 8,
'#default_value' => variable_get('user_activity_no_duplicate_seconds', 3600),
);
$form['user_activity_grouping_seconds'] = array(
'#title' => t('Maximum gap (in seconds) for the same activity to be grouped together'),
'#type' => 'textfield',
'#size' => 8,
'#default_value' => variable_get('user_activity_grouping_seconds', 3600),
);
$form['user_activity_grouping_how_many'] = array(
'#title' => t('Maximum number of items that can be grouped'),
'#type' => 'textfield',
'#size' => 8,
'#default_value' => variable_get('user_activity_grouping_how_many', 5),
);
return system_settings_form($form);
}