function counter_settings_initial in Counter 7
Same name and namespace in other branches
- 6.2 counter.settings.inc \counter_settings_initial()
Implements hook_initial().
1 string reference to 'counter_settings_initial'
- counter_menu in ./
counter.module - Menu callback. Prints a listing of active nodes on the site.
File
- ./
counter.settings.inc, line 154 - 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("Replace 'Since' value with this Unix timestamp"),
'#default_value' => variable_get('counter_initial_since', 0),
'#description' => t("If you leave this field blank then Counter module will use data from first inserted row of Counter table. This field type is Unix timestamp, so you must enter like: 1404671462."),
);
return system_settings_form($form);
}