You are here

function auditfiles_admin_settings in Audit Files 6.3

Same name and namespace in other branches
  1. 5 auditfiles.module \auditfiles_admin_settings()
  2. 6.2 auditfiles.admin.inc \auditfiles_admin_settings()
  3. 7.4 auditfiles.admin.inc \auditfiles_admin_settings()
  4. 7.3 auditfiles.admin.inc \auditfiles_admin_settings()

@file Callback for settings page

1 string reference to 'auditfiles_admin_settings'
auditfiles_menu in ./auditfiles.module
Implementation of hook_menu().

File

./auditfiles.admin.inc, line 7
Callback for settings page

Code

function auditfiles_admin_settings() {
  $form['auditfiles_exclude_files'] = array(
    '#type' => 'textfield',
    '#title' => t('Exclude these files'),
    '#default_value' => trim(variable_get('auditfiles_exclude_files', '.htaccess')),
    '#description' => t('Enter a list of files to exclude, separated by spaces.'),
  );
  $form['auditfiles_exclude_extensions'] = array(
    '#type' => 'textfield',
    '#title' => t('Exclude these extensions'),
    '#default_value' => trim(variable_get('auditfiles_exclude_extensions', '')),
    '#description' => t('Enter a list of extensions to exclude, separated by spaces. Do not include the leading dot.'),
  );
  $form['auditfiles_exclude_paths'] = array(
    '#type' => 'textfield',
    '#title' => t('Exclude these paths'),
    '#default_value' => trim(variable_get('auditfiles_exclude_paths', 'color')),
    '#description' => t('Enter a list of paths to exclude, separated by spaces. Do not include the leading slash. Paths are relative to %directorypath', array(
      '%directorypath' => file_directory_path(),
    )),
  );
  return system_settings_form($form);
}