Commit b04a221b authored by James Williams's avatar James Williams Committed by Gaurav Kapoor
Browse files

Issue #2725767 by james.williams, Gomez_in_the_South, guilopes, Suresh Prabhu...

Issue #2725767 by james.williams, Gomez_in_the_South, guilopes, Suresh Prabhu Parkala, vgutekunst, gaurav.kapoor, Chris Matthews: Email-notifications
parent 189f4091
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@ Installation
   configure the disqus comment field for any entity sub-type.
6. Visit the permissions, and set which users you would like to have the ability
   to view Disqus threads (recommended for role).
7. You can also set additional configurations related to localization, inherit
   login, comment tracking in GA and sending notification to entity author
   through the module settings.

Additional Requirements
--------
@@ -106,7 +109,8 @@ https://github.com/disqus/disqus-php/blob/master/README.rst
        \Drupal::logger('disqus')->error('Error updating thread details for
        entity : !identifier. Check your user access token.',
        array(
         '!identifier' => "{$entity->get($field_name)->identifier}" ?: "{$entity->getEntityTypeId()}/{$entity->id()}"
         '!identifier' => "{$entity->get($field_name)->identifier}" ?:
         "{$entity->getEntityTypeId()}/{$entity->id()}"
        ));
      }
    }
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ behavior:
  disqus_localization: false
  disqus_inherit_login: false
  disqus_track_newcomment_ga: false
  disqus_notify_newcomment: false
advanced:
  disqus_useraccesstoken: ''
  disqus_publickey: ''
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@ disqus.settings:
        disqus_track_newcomment_ga:
          type: boolean
          label: 'Track new comments in Google Analytics'
        disqus_notify_newcomment:
          type: boolean
          label: 'Notify of new comments by email'
    advanced:
      type: mapping
      label: 'Advanced'
+12 −0
Original line number Diff line number Diff line
@@ -51,3 +51,15 @@ function disqus_update_8001() {
      ->set($target_entity_type->id() . '.field_schema_data.' . $field->getName(), $stored_schema);
  }
}

/**
 * Set the default value of a new configuration property.
 */
function disqus_update_8101() {
  $config = \Drupal::configFactory()->getEditable('disqus.settings');
  if (!($config->isNew())) {
    $config
      ->set('behavior.disqus_notify_newcomment', FALSE)
      ->save(TRUE);
  }
}
+6 −0
Original line number Diff line number Diff line
@@ -14,3 +14,9 @@ ga:
    js/disqus_ga.js: {}
  dependencies:
    - disqus/disqus
notification:
  version: 1.x
  js:
    js/disqus_notification.js: {}
  dependencies:
    - disqus/disqus
Loading