@@ -41,6 +41,7 @@ function anti_duplicates_form_node_form_alter(&$form, FormStateInterface $form_s
$msg=t("Help us reduce the chance of duplicated content, if we find content that is similar or related to the one you are posting it will be listed below :");
}
if(!$config->get('anti_duplicates_placement')){
// Add a "Related content" details.
$form['anti_duplicates']=[
'#type'=>'details',
@@ -49,6 +50,7 @@ function anti_duplicates_form_node_form_alter(&$form, FormStateInterface $form_s
@@ -114,6 +114,17 @@ class AntiDuplicatesAdminForm extends ConfigFormBase {
'#description'=>$this->t('Select content types you want to use the anti duplicates for. If none are selected, no restriction based on types will be implemented.'),
];
$form['anti_duplicates_placement']=[
'#type'=>'radios',
'#title'=>$this->t('Placement of notice message'),
'#options'=>[
0=>$this->t('Right sidebar'),
1=>$this->t('Under the title'),
],
'#description'=>$this->t('Choose where the notice message will be placed.'),