Skip to content

Commit d3ea5b7

Browse files
committed
Fix message producer defaults for 4.4+
1 parent e698b01 commit d3ea5b7

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

docs/apis/core/message/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ Once your `messages.php` is complete you need to increase the version number of
8080
```php title="The default processor can be set using an element of the array"
8181
'mynotification' => [
8282
'defaults' => [
83-
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
83+
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
8484
'email' => MESSAGE_PERMITTED,
8585
],
8686
],
8787
```
8888

89-
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
89+
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
9090
The possible values are recorded in the lib.php file of messaging
9191

9292
```php
9393
/**
9494
* Define contants for messaging default settings population. For unambiguity of
9595
* plugin developer intentions we use 4-bit value (LSB numbering):
96-
* bit 0 - whether to send message when user is loggedin (MESSAGE_DEFAULT_LOGGEDIN)
97-
* bit 1 - whether to send message when user is loggedoff (MESSAGE_DEFAULT_LOGGEDOFF)
96+
* bit 0 - whether to send message (MESSAGE_DEFAULT_ENABLED)
97+
* bit 1 - not used
9898
* bit 2..3 - messaging permission (MESSAGE_DISALLOWED|MESSAGE_PERMITTED|MESSAGE_FORCED)
9999
*
100100
* MESSAGE_PERMITTED_MASK contains the mask we use to distinguish permission setting

versioned_docs/version-4.4/apis/core/message/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ Once your `messages.php` is complete you need to increase the version number of
8080
```php title="The default processor can be set using an element of the array"
8181
'mynotification' => [
8282
'defaults' => [
83-
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
83+
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
8484
'email' => MESSAGE_PERMITTED,
8585
],
8686
],
8787
```
8888

89-
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
89+
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
9090
The possible values are recorded in the lib.php file of messaging
9191

9292
```php
9393
/**
9494
* Define contants for messaging default settings population. For unambiguity of
9595
* plugin developer intentions we use 4-bit value (LSB numbering):
96-
* bit 0 - whether to send message when user is loggedin (MESSAGE_DEFAULT_LOGGEDIN)
97-
* bit 1 - whether to send message when user is loggedoff (MESSAGE_DEFAULT_LOGGEDOFF)
96+
* bit 0 - whether to send message (MESSAGE_DEFAULT_ENABLED)
97+
* bit 1 - not used
9898
* bit 2..3 - messaging permission (MESSAGE_DISALLOWED|MESSAGE_PERMITTED|MESSAGE_FORCED)
9999
*
100100
* MESSAGE_PERMITTED_MASK contains the mask we use to distinguish permission setting

versioned_docs/version-4.5/apis/core/message/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ Once your `messages.php` is complete you need to increase the version number of
8080
```php title="The default processor can be set using an element of the array"
8181
'mynotification' => [
8282
'defaults' => [
83-
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
83+
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
8484
'email' => MESSAGE_PERMITTED,
8585
],
8686
],
8787
```
8888

89-
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
89+
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
9090
The possible values are recorded in the lib.php file of messaging
9191

9292
```php
9393
/**
9494
* Define contants for messaging default settings population. For unambiguity of
9595
* plugin developer intentions we use 4-bit value (LSB numbering):
96-
* bit 0 - whether to send message when user is loggedin (MESSAGE_DEFAULT_LOGGEDIN)
97-
* bit 1 - whether to send message when user is loggedoff (MESSAGE_DEFAULT_LOGGEDOFF)
96+
* bit 0 - whether to send message (MESSAGE_DEFAULT_ENABLED)
97+
* bit 1 - not used
9898
* bit 2..3 - messaging permission (MESSAGE_DISALLOWED|MESSAGE_PERMITTED|MESSAGE_FORCED)
9999
*
100100
* MESSAGE_PERMITTED_MASK contains the mask we use to distinguish permission setting

versioned_docs/version-5.0/apis/core/message/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ Once your `messages.php` is complete you need to increase the version number of
8080
```php title="The default processor can be set using an element of the array"
8181
'mynotification' => [
8282
'defaults' => [
83-
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
83+
'pop-up' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
8484
'email' => MESSAGE_PERMITTED,
8585
],
8686
],
8787
```
8888

89-
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
89+
With that setting email will be permitted but disabled for each user by default. It can be turned on by each user through the `preferences/notification` preferences options (`/message/notificationpreferences.php?userid=X`)
9090
The possible values are recorded in the lib.php file of messaging
9191

9292
```php
9393
/**
9494
* Define contants for messaging default settings population. For unambiguity of
9595
* plugin developer intentions we use 4-bit value (LSB numbering):
96-
* bit 0 - whether to send message when user is loggedin (MESSAGE_DEFAULT_LOGGEDIN)
97-
* bit 1 - whether to send message when user is loggedoff (MESSAGE_DEFAULT_LOGGEDOFF)
96+
* bit 0 - whether to send message (MESSAGE_DEFAULT_ENABLED)
97+
* bit 1 - not used
9898
* bit 2..3 - messaging permission (MESSAGE_DISALLOWED|MESSAGE_PERMITTED|MESSAGE_FORCED)
9999
*
100100
* MESSAGE_PERMITTED_MASK contains the mask we use to distinguish permission setting

0 commit comments

Comments
 (0)