Browse Source

Merge pull request #17 from seth-shaw-asu/patch-1

Fix relative datetime link
pull/22/head v1.2.4
Chris MacDonald 9 months ago committed by GitHub
parent
commit
054d92d184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/Form/SettingsForm.php

4
src/Form/SettingsForm.php

@ -141,7 +141,7 @@ class SettingsForm extends ConfigFormBase {
'#title' => $this->t('Time elapsed'), '#title' => $this->t('Time elapsed'),
'#description' => $this->t(' '#description' => $this->t('
<p>Time threshold is relative to "<em>now</em>". For example "<em>-1 month</em>" would prevent any checks that occurred less than a month ago.</p> <p>Time threshold is relative to "<em>now</em>". For example "<em>-1 month</em>" would prevent any checks that occurred less than a month ago.</p>
<p>Check <a href="https://www.php.net/manual/en/datetime.formats.relative.php">Relative Formats</a> for acceptable values</p> <p>Check <a href="https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative">Relative Formats</a> for acceptable values</p>
'), '),
'#default_value' => $config->get(static::THRESHOLD) ?: '-1 month', '#default_value' => $config->get(static::THRESHOLD) ?: '-1 month',
'#element_validate' => [ '#element_validate' => [
@ -209,7 +209,7 @@ class SettingsForm extends ConfigFormBase {
'#title' => $this->t('Time elapsed'), '#title' => $this->t('Time elapsed'),
'#description' => $this->t(' '#description' => $this->t('
<p>Time threshold is relative to "<em>now</em>". For example "<em>-1 week</em>" would mean a week must pass between notifications.</p> <p>Time threshold is relative to "<em>now</em>". For example "<em>-1 week</em>" would mean a week must pass between notifications.</p>
<p>Check <a href="https://www.php.net/manual/en/datetime.formats.relative.php">Relative Formats</a> for acceptable values</p> <p>Check <a href="https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative">Relative Formats</a> for acceptable values</p>
'), '),
'#default_value' => $notification_threshold, '#default_value' => $notification_threshold,
'#element_validate' => [ '#element_validate' => [

Loading…
Cancel
Save