function panels_edit_configure_access_settings_form in Panels 6.3
Same name and namespace in other branches
- 7.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 1763 - Class file to control the main Panels editor.
Code
function panels_edit_configure_access_settings_form(&$form_state) {
$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;
}