Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12841

Allow extensions to position new config vars in an array

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-RC3
    • Component/s: ACP, Extensions
    • Labels:
      None

      Description

      The core event core.acp_board_config_edit_add only allows extensions to edit or add new config vars to an array. However, if an author wants to put their config vars in a certain position in the array so they will display in a logical place in the ACP, the author must devise their own array slice and dice strategy.

      phpBB should provide a function they can use to easily position their new config array before or after a targeted core config var name.

      e.g.:

      $display_vars['vars'] = insert_config_array($display_vars['vars'], $custom_config_vars, array('after' => 'config_name'));

      Inspired by this topic: https://www.phpbb.com/community/viewtopic.php?f=461&t=2247396

        Attachments

          Activity

            People

            • Assignee:
              nickvergessen Joas Schilling
              Reporter:
              VSE Matt Friedman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: