Hook

Drupal subscriptions.module: Exclude (current) user from notifications about own changes via HOOK

With the following little HOOK snippet you can exclude users from receiving notifications about own changes in the subscriptions.module:

  1. /**
  2.  * Implements HOOK_subscriptions_queue_alter.
  3.  */
  4. function MYMODULE_subscriptions_queue_alter(&$event){
  5.   global $user;
  6.   if(!empty($user)){
  7.     // Prevent users from receiving notifications about own changes.