From 926f8034cdfdc4d30d8172572473faa2355a2cad Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Wed, 24 Oct 2018 17:01:17 -0300 Subject: [PATCH] WIP how do configuration objects even --- bibcite_footnotes.info.yml | 10 ++++++++-- bibcite_footnotes.module | 17 +++++++++++++++++ css/reference_footnote.css | 1 - 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/bibcite_footnotes.info.yml b/bibcite_footnotes.info.yml index 3b3d9f9..d6dac8e 100644 --- a/bibcite_footnotes.info.yml +++ b/bibcite_footnotes.info.yml @@ -9,7 +9,13 @@ dependencies: - footnotes:footnotes # Information added by Drupal.org packaging script on 2018-07-30 -version: '8.x-1.0-alpha5' +# version: '8.x-1.0-alpha5' +# core: '8.x' +# project: 'bibcite_footnotes' +# datestamp: 1532941092 + +# Information added by Drupal.org packaging script on 2018-10-17 +version: '8.x-1.0-beta1' core: '8.x' project: 'bibcite_footnotes' -datestamp: 1532941092 +datestamp: 1539801484 diff --git a/bibcite_footnotes.module b/bibcite_footnotes.module index 904820d..898cf35 100644 --- a/bibcite_footnotes.module +++ b/bibcite_footnotes.module @@ -194,3 +194,20 @@ function bibcite_footnotes_theme_footnote_list($footnotes) { return $str; } + +function bibcite_footnotes_form_filter_format_edit_form_alter(&$form, &$form_state, $form_id) { + $form['filters']['settings']['filters_footnotes']['bibcite_footnotes'] = [ + '#type' => 'fieldset', + '#title' => t('Bibliography and Citation SettingsE'), + '#collapsible' => FALSE, + '#collapsed' => FALSE, + ]; + $form['filters']['settings']['filter_footnotes']['bibcite_footnotes']['notes_section_label'] = [ + '#type' => 'textfield', + '#title' => t('Notes section title'), + ]; + $form['filters']['settings']['filter_footnotes']['bibcite_footnotes']['references_section_label'] = [ + '#type' => 'textfield', + '#title' => t('References section title'), + ]; +} \ No newline at end of file diff --git a/css/reference_footnote.css b/css/reference_footnote.css index 7c212de..2df1272 100644 --- a/css/reference_footnote.css +++ b/css/reference_footnote.css @@ -5,4 +5,3 @@ .footnotes .footnote .footnote-link::after { content: " "; white-space: pre; -} \ No newline at end of file