Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29548

Let message outputs have some say in what the defaults are

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.2
    • Fix Version/s: 2.1.2
    • Component/s: Messages
    • Labels:
    • Testing Instructions:
      Hide

      1. Do a clean install. Make sure the messaging defaults are correct. (email and popup permitted for everything. Email on and popup off for everything except personal messaging where popup is on when online.)

      2. If possible, make a new messaging output (copy an existing one and rename?), and override the get_default_messaging_settings method to return MESSAGE_FORCED, or something. Make sure this default is used for all message type.

      3. If possible, try installing a plugin that defines some new message_providers in its messages.php file. Make sure that these messages get the right defaults (from messages.php if defined there, otherwise the ones defined by the outputs.)

      (One way to do 3. is to go to Site administration / Plugins / Activity modules / Manage activities and use the delete link to uninstall a module that has message providers, then let it re-install itself.)

      Show
      1. Do a clean install. Make sure the messaging defaults are correct. (email and popup permitted for everything. Email on and popup off for everything except personal messaging where popup is on when online.) 2. If possible, make a new messaging output (copy an existing one and rename?), and override the get_default_messaging_settings method to return MESSAGE_FORCED, or something. Make sure this default is used for all message type. 3. If possible, try installing a plugin that defines some new message_providers in its messages.php file. Make sure that these messages get the right defaults (from messages.php if defined there, otherwise the ones defined by the outputs.) (One way to do 3. is to go to Site administration / Plugins / Activity modules / Manage activities and use the delete link to uninstall a module that has message providers, then let it re-install itself.)
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      At the OU, we are making a new message output. What we would to happen is that for every type of message provider, the default is set to MESSAGE_DISALLOWED (so we can selectively turn it on just for the things we want).

      I am about to make patch to implement this. It would be really great if this could get into 2.1 stable branch, but we realise that may not be possible.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11