function audit_log_elastic_search_settings in Audit Log 7
Render admin form.
1 string reference to 'audit_log_elastic_search_settings'
- audit_log_elastic_search_menu in modules/
audit_log_elastic_search/ audit_log_elastic_search.module - Implements hook_menu().
File
- modules/
audit_log_elastic_search/ audit_log_elastic_search.admin.inc, line 10 - Hook implemenations for the Audit elastic search logging module.
Code
function audit_log_elastic_search_settings() {
$form = array();
$form['#old_cluster_id'] = variable_get('audit_log_elastic_search_cluster_id', array());
$form['audit_log_elastic_search_cluster_id'] = array(
'#type' => 'ec_index',
'#title' => t('Select cluster'),
'#required' => TRUE,
'#default_value' => variable_get('audit_log_elastic_search_cluster_id', array()),
'#description' => t('Select the settings in order to be able to hold the logs.'),
);
$form['audit_log_elastic_search_type'] = array(
'#type' => 'textfield',
'#title' => t('Type name'),
'#required' => TRUE,
'#element_validate' => array(
'elasticsearch_connector_validate_type_field',
),
'#default_value' => variable_get('audit_log_elastic_search_type', ELASTICSEARCH_WATCHDOG_DEFAULT_TYPE),
'#description' => t('Enter the elasticsearch type name you want to store the logs'),
);
$form['#validate'] = array(
'audit_log_elastic_search_settings_validate',
);
return system_settings_form($form);
}