You are here

function context_breakpoint_admin_settings_form in Context Breakpoint 7

1 string reference to 'context_breakpoint_admin_settings_form'
context_breakpoint_menu in ./context_breakpoint.module
Implements hook_menu().

File

./context_breakpoint.module, line 106
context_screenresolution.module Main module file.

Code

function context_breakpoint_admin_settings_form($form, &$form_state) {
  $settings = context_breakpoint_get_settings();
  $form['admin_disable_reload'] = array(
    '#type' => 'checkbox',
    '#title' => t('Disable reload on admin pages'),
    '#description' => t('Disable the reload feature on admin pages.'),
    '#default_value' => $settings['admin_disable_reload'],
  );
  $form['save_resolution'] = array(
    '#type' => 'checkbox',
    '#title' => t('Save resolution in cookie'),
    '#description' => t('SEE README.txt FOR CAHCHING IMPLICATIONS.<br /><br /> If checked, the users current browser resolution in pixels is saved in a cookie.<br />Normally, just the active context is saved in the context_breakpoints cookie.'),
    '#default_value' => $settings['save_resolution'],
  );
  $form['breakpoints_in_url'] = array(
    '#type' => 'checkbox',
    '#title' => t('EXPERIMENTAL: Add active contexts to url for CACHING'),
    '#description' => t('<b>EXPERIMENTAL!</b><br /> CHECK README.TXT UNDER CACHING BEFORE YOU ENABLE.'),
    '#default_value' => $settings['breakpoints_in_url'],
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}