You are here

function panels_edit_configure_pane_css_form in Panels 6.3

Same name and namespace in other branches
  1. 7.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 1721
Class file to control the main Panels editor.

Code

function panels_edit_configure_pane_css_form(&$form_state) {
  $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.'),
  );
  $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.'),
  );
  $form['next'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}