Example #1
0
 /**
  * notify watchers or not?
  *
  * Disable notifications during the interactive chat.
  *
  * @see overlays/event.php
  *
  * @param array if provided, a notification that can be sent to customised recipients
  * @return boolean always FALSE for events, since notifications are made through enrolment
  */
 function should_notify_watchers($mail = NULL)
 {
     global $context;
     // no e-mail if we are chatting
     if ($this->attributes['status'] == 'started') {
         return FALSE;
     }
     // else rely on parent class
     return parent::should_notify_watchers($mail);
 }