function LinkitSearchPluginNode::buildSettingsForm in Linkit 7.3
Overrides LinkitSearchPlugin::buildSettingsForm().
Overrides LinkitSearchPluginEntity::buildSettingsForm
File
- plugins/
linkit_search/ node.class.php, line 38 - Define Linkit node search plugin class.
Class
- LinkitSearchPluginNode
- Reprecents a Linkit node search plugin.
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,
'#description' => t('In order to see unpublished nodes, the user must also have permissions to do so. '),
);
return $form;
}