You are here

function panels_edit_configure_pane_css_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_pane_css_form()

Configure CSS on a pane form.

1 string reference to 'panels_edit_configure_pane_css_form'
panels_renderer_editor::ajax_pane_css in plugins/display_renderers/panels_renderer_editor.class.php
AJAX entry point to configure CSS for a pane.

File

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

Code

function panels_edit_configure_pane_css_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['css_id'] = array(
    '#type' => 'textfield',
    '#default_value' => isset($pane->css['css_id']) ? $pane->css['css_id'] : '',
    '#title' => t('CSS ID'),
    '#description' => t('CSS ID to apply to this pane. This may be blank. Keywords from context are allowed.'),
  );
  $form['css_class'] = array(
    '#type' => 'textfield',
    '#default_value' => isset($pane->css['css_class']) ? $pane->css['css_class'] : '',
    '#title' => t('CSS class'),
    '#description' => t('CSS class to apply to this pane. This may be blank. Keywords from context are allowed.'),
  );
  $form['next'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}