Change $info array argument to system_get_module_admin_tasks() to $name

Created on 7 April 2015, over 9 years ago
Updated 9 September 2023, about 1 year ago

Follow-up to #2281989: Add a fast and simple way to get module name from the module handler

Problem/Motivation

This function is only being called from AdminController and HelpController, yet it wants a full info file as an argument. We want to get rid of calls to system_get_info() and use the ModuleHandler instead.

Proposed resolution

Either offer this as a trait that both controllers can use or pass in a fake array('name' => $name) info array. Deprecate the function for removal in 9.0, or remove it.

This also allows us to get rid of the calls to system_get_info() and use ModuleHandler::getModuleList() and ModuleHandler::getName() instead

Remaining tasks

Patch

User interface changes

None

API changes

See issue title

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
📌 Task
Status

Fixed

Version

11.0 🔥

Component
Base 

Last updated about 1 hour ago

Created by

🇳🇱Netherlands stefan.r

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024