You are here

function panels_edit_configure_access_settings_form in Panels 7.3

Same name and namespace in other branches
  1. 6.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_edit_configure_access_settings_form()

Form to control basic visibility settings.

1 string reference to 'panels_edit_configure_access_settings_form'
panels_renderer_editor::ajax_access_settings in plugins/display_renderers/panels_renderer_editor.class.php
AJAX entry point to configure access settings for a pane.

File

plugins/display_renderers/panels_renderer_editor.class.php, line 1928
Class file to control the main Panels editor.

Code

function panels_edit_configure_access_settings_form($form, &$form_state) {
  ctools_form_include($form_state, 'plugins', 'panels');
  form_load_include($form_state, 'php', 'panels', '/plugins/display_renderers/panels_renderer_editor.class');
  $display =& $form_state['display'];
  $pane =& $form_state['pane'];
  $form['logic'] = array(
    '#type' => 'radios',
    '#options' => array(
      'and' => t('All criteria must pass.'),
      'or' => t('Only one criterion must pass.'),
    ),
    '#default_value' => isset($pane->access['logic']) ? $pane->access['logic'] : 'and',
  );
  $form['next'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}