You are here

function LinkitPluginNode::buildSettingsForm in Linkit 7.2

Generate a settings form for this handler. Uses the standard Drupal FAPI. The element will be attached to the "data" key.

Return value

An array containing any custom form elements to be displayed in the profile editing form.

Overrides LinkitPluginEntity::buildSettingsForm

File

plugins/linkit_plugins/linkit-plugin-node.class.php, line 48
Define Linkit node plugin class.

Class

LinkitPluginNode
@file Define Linkit node plugin class.

Code

function buildSettingsForm() {

  // Get the parent settings form.
  $form = parent::buildSettingsForm();
  $form[$this->plugin['name']]['include_unpublished'] = array(
    '#title' => t('Include unpublished nodes'),
    '#type' => 'checkbox',
    '#default_value' => isset($this->conf['include_unpublished']) ? $this->conf['include_unpublished'] : 0,
  );
  return $form;
}