function views_accelerator_admin_configure in Views Accelerator 7
Menu callback for admin settings.
1 string reference to 'views_accelerator_admin_configure'
- views_accelerator_menu in ./
views_accelerator.module - Implements hook_menu().
File
Code
function views_accelerator_admin_configure() {
$form = array();
$form['views_accelerator_advanced'] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#title' => t('Advanced options'),
);
$form['views_accelerator_advanced']['views_accelerator_analysis_level'] = array(
'#type' => 'radios',
'#title' => t('Display view performance stats'),
'#options' => array(
0 => t('Off'),
1 => t('View summary only'),
2 => t('View summary and its fields'),
3 => t('Everything'),
),
'#default_value' => variable_get('views_accelerator_analysis_level', 0),
'#description' => t('Summary statistics are shown to the users specified below for all views visited. <br>Detailed execution times are shown only for views enabled via the special <strong>Caching</strong> setting on the Views configuration panel.'),
);
$form['views_accelerator_advanced']['views_accelerator_priv_users'] = array(
'#type' => 'textfield',
'#title' => t('Users that may view peformance stats'),
'#default_value' => variable_get('views_accelerator_priv_users'),
'#description' => t('Enter a comma-separated list of names of users that may view performance statistics coming from this module. Use <strong>anon</strong> for the anonymous user.'),
);
$form['views_accelerator_advanced']['views_accelerator_decimals'] = array(
'#type' => 'textfield',
'#size' => 2,
'#maxsize' => 2,
'#title' => t('Display accuracy'),
'#default_value' => variable_get('views_accelerator_decimals', 2),
'#description' => t('Number of decimals shown when displaying execution times.'),
);
return system_settings_form($form);
}