public function FlexiformDisplayUserCategory::configForm in Flexiform 7
Get the configuration form.
Overrides FlexiformDisplayBase::configForm
File
- includes/
display/ user_category.display.inc, line 48 - Define Display plugin for the add page.
Class
- FlexiformDisplayUserCategory
- Class for add page displays.
Code
public function configForm($form, &$form_state) {
$form = parent::configForm($form, $form_state);
$form['category'] = array(
'#title' => t('Category'),
'#type' => 'textfield',
'#default_value' => isset($this->configuration['category']) ? $this->configuration['category'] : NULL,
'#description' => t('The path component for this category.'),
);
$form['weight'] = array(
'#title' => t('Weight'),
'#type' => 'weight',
'#description' => t('Heavier items will sink and lighter items will be positioned near the top.'),
'#default_value' => isset($this->configuration['weight']) ? $this->configuration['weight'] : 0,
'#delta' => 30,
);
return $form;
}