You are here

function authcache_panels_cache_settings_form in Authenticated User Page Caching (Authcache) 7.2

Settings form.

1 string reference to 'authcache_panels_cache_settings_form'
authcache_panels.inc in modules/authcache_panels/plugins/cache/authcache_panels.inc
Authcache Panels cache plugin.

File

modules/authcache_panels/plugins/cache/authcache_panels.inc, line 49
Authcache Panels cache plugin.

Code

function authcache_panels_cache_settings_form($conf, $display, $pid) {
  if ($pid !== 'display') {
    if (!isset($conf['machine_name'])) {
      $conf['machine_name'] = authcache_panels_pane_machine_name_generate($display, $pid);
    }
    $form['machine_name'] = array(
      '#type' => 'machine_name',
      '#default_value' => $conf['machine_name'],
      '#machine_name' => array(
        'exists' => 'authcache_panels_pane_machine_name_exists',
      ),
    );
    $form['authcache'] = array(
      '#type' => 'authcache_p13n_config',
      '#default_value' => $conf['authcache'],
    );
  }
  else {
    $form['authcache'] = array(
      '#markup' => '<p>' . t('Authcache currently does not support caching of whole displays. Only per content pane caching is possible for now.') . '</p>',
    );
  }
  return $form;
}