function counter_settings_initial in Counter 6.2
Same name and namespace in other branches
- 7 counter.settings.inc \counter_settings_initial()
File
- ./
counter.settings.inc, line 149 - Settings page callback file for the counter module.
Code
function counter_settings_initial() {
$form['counter_initial'] = array(
'#type' => 'fieldset',
'#weight' => -10,
'#title' => t('Initial Values'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#description' => t("Set initial values for Site Counter."),
);
$form['counter_initial']['counter_initial_counter'] = array(
'#type' => 'textfield',
'#title' => t('Initial value of Site Counter'),
'#default_value' => variable_get('counter_initial_counter', 0),
'#description' => t('Initial value of Site Counter'),
);
$form['counter_initial']['counter_initial_unique_visitor'] = array(
'#type' => 'textfield',
'#title' => t('Initial value of Unique Visitor'),
'#default_value' => variable_get('counter_initial_unique_visitor', 0),
'#description' => t('Initial value of Unique Visitor'),
);
$form['counter_initial']['counter_initial_since'] = array(
'#type' => 'textfield',
'#title' => t("Initial value of Since"),
'#default_value' => variable_get('counter_initial_since', date('Y-m-d H:i:s', time())),
);
return system_settings_form($form);
}