You are here

function audit_log_filter_by_role_form in Audit Log 7

Render admin form to select roles.

1 string reference to 'audit_log_filter_by_role_form'
audit_log_filter_menu in modules/audit_log_filter/audit_log_filter.module
Implements hook_menu().

File

modules/audit_log_filter/audit_log_filter.admin.inc, line 10
Hook implemenations for the Audit database logging module.

Code

function audit_log_filter_by_role_form($form, &$form_state) {
  $form['audit_log_filter_exclude_roles'] = array(
    '#title' => t('Exclude roles'),
    '#description' => t('Select the roles which should be excluded from logging.'),
    '#type' => 'checkboxes',
    '#options' => user_roles(),
    '#default_value' => variable_get('audit_log_filter_exclude_roles', array()),
  );
  return system_settings_form($form);
}