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

Return "customusermenuitems" value via tool_mobile_get_config WS

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.1
    • 4.0.1, 4.1
    • Web Services
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-74825-master
    • Hide
      1. Login as admin, and access Theme settings
        Appearance ► Theme settings
      2. Insert a valid value in customusermenuitems settings
      3. Enable "Mobile services":
        Plugins ► Web Services ► Mobile
      4. Create a Token for the user
        Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user token.
      6. You need to replace the $wstoken and the MOODLE_URL of your moodle instance

        curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' | python -m json.tool

      7. Confirm that you see an entry for the "customusermenuitems" settings
      Show
      Login as admin, and access Theme settings Appearance ► Theme settings Insert a valid value in customusermenuitems settings Enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the user Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user token. You need to replace the $wstoken and the MOODLE_URL of your moodle instance curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' | python -m json.tool Confirm that you see an entry for the " customusermenuitems " settings

      Include a new section within the indicated WebService called "themesettings" returning the value of the "customusermenuitems" setting that can be found https://yoursite.com/admin/settings.php?section=themesettings

            rodrigo.mady@moodle.com Rodrigo Mady
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Jun Pataleta Jun Pataleta
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 16 minutes
                1d 2h 16m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.