You are here

function it_cookie_compliance_admin_settings in IT Cookie Compliance 7

Implements hook_admin_form().

1 string reference to 'it_cookie_compliance_admin_settings'
it_cookie_compliance_menu in ./it_cookie_compliance.module
Implements hook_menu().

File

./it_cookie_compliance.admin.inc, line 11
It Cookie Compliance configuration functions.

Code

function it_cookie_compliance_admin_settings() {
  $form = array();
  $form['it_cookie_compliance_javascript'] = array(
    '#type' => 'textarea',
    '#title' => t('Javascript to exclude'),
    '#default_value' => variable_get('it_cookie_compliance_javascript', ''),
    '#description' => t('Set the javascript names to remove, separated by commas or one for every line. Names are checked by containment. E.g., "google" removes from the page all javascripts that contain "google".'),
  );
  $form['it_cookie_compliance_blocks'] = array(
    '#type' => 'textarea',
    '#title' => t('Blocks to exclude'),
    '#default_value' => variable_get('it_cookie_compliance_blocks', ''),
    '#description' => t('Set block machine names to remove, separated by commas or one for every line. Names are checked by containment. E.g., "google" removes from the page all blocks that contain "google", "block_2" excludes a block that in the html has id "block-block-2".'),
  );
  $form['it_cookie_compliance_fields'] = array(
    '#type' => 'textarea',
    '#title' => t('Fields to exclude'),
    '#default_value' => variable_get('it_cookie_compliance_fields', ''),
    '#description' => t('Set the exact field machine names to remove from node view, separated by commas or one for every line. E.g. field_image removes the field named exactly "field_image".'),
  );
  return system_settings_form($form);
}