function heartbeat_admin_settings in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 heartbeat.admin.inc \heartbeat_admin_settings()
- 6.2 heartbeat.admin.inc \heartbeat_admin_settings()
- 7 modules/heartbeat_ui/heartbeat_ui.admin.inc \heartbeat_admin_settings()
Function to maintain and administer heartbeat settings
Return value
settingsform
1 string reference to 'heartbeat_admin_settings'
- heartbeat_menu in ./
heartbeat.module - Implementation of hook_menu().
File
- ./
heartbeat.admin.inc, line 9
Code
function heartbeat_admin_settings() {
$form['heartbeat_enabled'] = array(
'#title' => t('Do you want to enable the heatbeat logging'),
'#type' => 'checkbox',
'#default_value' => variable_get('heartbeat_enabled', 1),
);
$form['heartbeat_show_message_times'] = array(
'#title' => t('Show the time of action in message displays'),
'#type' => 'checkbox',
'#default_value' => variable_get('heartbeat_show_message_times', 1),
);
$form['heartbeat_show_time_grouped_items'] = array(
'#title' => t('Show the time of action with messages are grouped together'),
'#type' => 'checkbox',
'#default_value' => variable_get('heartbeat_show_time_grouped_items', 1),
);
return system_settings_form($form);
}