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

Global settings link for blocks does not appear on Manage Block screen when it does appear in the menu tree

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.1
    • None
    • Blocks
    • Any
    • MOODLE_21_STABLE
    • Hide

      Either just access the settings function from the menu, or add a 'has_config' function to the block code.

      Show
      Either just access the settings function from the menu, or add a 'has_config' function to the block code.
    • Hide

      Install a block with a "settings.php" file but no "has_config" method.
      Verify that the settings link is in one or both places.

      Show
      Install a block with a "settings.php" file but no "has_config" method. Verify that the settings link is in one or both places.

    Description

      If you have a "settings.php" file in your block's directory, the settings link will be available from the main "Plugins / Blocks" menu tree but will not show up on the main "Manage blocks" page. This is true unless there is a "has_config" function defined within the block that returns true. I believe this inconsistency is unintended.
      One of two things should be true:

      1. Presence of the "settings.php" generated the setting link in both places, or
      2. Presence of the "has_config" function is required to generate the setting link in both places.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mchurch Mike Churchward
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: