Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
Overrides HandlerBase::buildOptionsForm
public function buildOptionsForm(&$form, &$form_state) {
parent::buildOptionsForm($form, $form_state);
if ($this
->canExpose()) {
$this
->showExposeButton($form, $form_state);
}
if ($this
->canBuildGroup()) {
$this
->showBuildGroupButton($form, $form_state);
}
$form['clear_markup_start'] = array(
'#markup' => '<div class="clearfix">',
);
if ($this
->isAGroup()) {
if ($this
->canBuildGroup()) {
$form['clear_markup_start'] = array(
'#markup' => '<div class="clearfix">',
);
// Render the build group form.
$this
->showBuildGroupForm($form, $form_state);
$form['clear_markup_end'] = array(
'#markup' => '</div>',
);
}
}
else {
// Add the subform from operatorForm().
$this
->showOperatorForm($form, $form_state);
// Add the subform from valueForm().
$this
->showValueForm($form, $form_state);
$form['clear_markup_end'] = array(
'#markup' => '</div>',
);
if ($this
->canExpose()) {
// Add the subform from buildExposeForm().
$this
->showExposeForm($form, $form_state);
}
}
}