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

Local plugin doesn't support messaging 2.0

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Messages
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      I wanted to use message API with the hub local plugin, I discovered that message feature was not implemented, local/readme.txt:

      • /local/xxx/db/messages.php - messaging registration

      Not sure who I should assign it to (Andrew, David, Petr)?

      I don't have a full understanding of the mandatory/optional field that are required, but at least kind of :

      /local/xxxx/messages.php content
      <?php
      $local_xxxx_messages = array(
      'name' => array( //name being the $eventdata->name
      '?' => '?', //maybe some options???
      ),
      );

      I guess when the plugin is installed it will create a row into message_providers with component = 'local/hub' and all names defined in this file.

      Note: all dev having created a local plugin would need to add the row manually during upgrade. It would be nice if some function could be easily called to add the missing row.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jerome Jérôme Mouneyrac
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: