You are here

function panels_mini_ui::edit_form in Panels 7.3

Same name and namespace in other branches
  1. 6.3 panels_mini/plugins/export_ui/panels_mini_ui.class.php \panels_mini_ui::edit_form()

Provide the actual editing form.

Overrides ctools_export_ui::edit_form

File

panels_mini/plugins/export_ui/panels_mini_ui.class.php, line 125

Class

panels_mini_ui
@file

Code

function edit_form(&$form, &$form_state) {

  // Get the basic edit form.
  parent::edit_form($form, $form_state);

  // Set the admin title machine name length.
  // We need to do this because the system block name length is
  // limited to 32 chars.
  $form['info']['name']['#maxlength'] = 32;
  $form['info']['name']['#size'] = 34;
  $form['info']['name']['#description'] .= ' ' . t('The machine name length is limited to 32 characters, due to a limitation in the core block system.');
  $form['category'] = array(
    '#type' => 'textfield',
    '#size' => 24,
    '#default_value' => $form_state['item']->category,
    '#title' => t('Category'),
    '#description' => t("The category that this mini-panel will be grouped into on the Add Content form. Only upper and lower-case alphanumeric characters are allowed. If left blank, defaults to 'Mini panels'."),
  );
  $form['title']['#title'] = t('Title');
  $form['title']['#description'] = t('The title for this mini panel. It can be overridden in the block configuration.');
}