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

Allow environment.xml to call call custom PHP code

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Gliffy Diagrams

        Attachments

          Activity

          Hide
          timhunt Tim Hunt added a comment -

          Eloy, Help!

          I forgot one thing when I did this. There are two new strings that need to be included in the install lang files to make this work. How do I get them added? They are

          'environmentrecommendXXX'
          'environmentrequireXXX'

          I can't remember what the XXX is exactly, but they are with the other ones in the main admin file.

          Thanks.

          Show
          timhunt Tim Hunt added a comment - Eloy, Help! I forgot one thing when I did this. There are two new strings that need to be included in the install lang files to make this work. How do I get them added? They are 'environmentrecommendXXX' 'environmentrequireXXX' I can't remember what the XXX is exactly, but they are with the other ones in the main admin file. Thanks.
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          They must be added (the string keys) to:

          cvs://contrib/tools/lang2installer/installer_strings (HEAD)

          and then I must be "pinged".

          With that, I execute manually some updates and they will start being detected automatically for each lang (each night).

          In fact, viewing your code....are such strings:

          qtyperqpwillberemovedanyway
          qtyperqpwillberemoved

          Just add them and ping me.

          Ciao, Eloy

          P.S: I've been reviewing your code. Looks perfect! I've added one/two comments in Docs too.

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - They must be added (the string keys) to: cvs://contrib/tools/lang2installer/installer_strings (HEAD) and then I must be "pinged". With that, I execute manually some updates and they will start being detected automatically for each lang (each night). In fact, viewing your code....are such strings: qtyperqpwillberemovedanyway qtyperqpwillberemoved Just add them and ping me. Ciao, Eloy P.S: I've been reviewing your code. Looks perfect! I've added one/two comments in Docs too.
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Ah, just found also these strings:

          environmentrequirecustomcheck
          environmentrecommendcustomcheck

          So, perhaps the FOUR should be added to the "installer_strings" file above.

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Ah, just found also these strings: environmentrequirecustomcheck environmentrecommendcustomcheck So, perhaps the FOUR should be added to the "installer_strings" file above.
          Hide
          timhunt Tim Hunt added a comment -

          Oops, I forgot all about this. I have now changed and committed installer_strings. Thanks.

          Show
          timhunt Tim Hunt added a comment - Oops, I forgot all about this. I have now changed and committed installer_strings. Thanks.
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          installer_strings upgraded at moodle.org servers.

          Next generation (this European night) will add such strings to installer.php language files....

          Ciao

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - installer_strings upgraded at moodle.org servers. Next generation (this European night) will add such strings to installer.php language files.... Ciao

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08