Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12841

Allow extensions to position new config vars in an array

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-RC3
    • 3.1.0-dev
    • ACP, Extensions
    • None

      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

            nickvergessen Joas Schilling
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: