The node edit form contains the following form element.
$form['revision_information'] = array( '#type' => 'details', '#group' => 'advanced', '#title' => t('Revision information'), // Open by default when "Create new revision" is checked. '#open' => $node->isNewRevision(), '#attributes' => array( 'class' => array('node-form-revision-information'), ), '#attached' => array( 'library' => array('node/drupal.node'), ), '#weight' => 20, '#optional' => TRUE, );
What does the #optional
property mean for it?
I looked at both the Details
and the VerticalTabs
classes, but neither of them seems to handle that property.
What does setting #optional
to TRUE
do?
Sponsored by SupremePR