Create an outgoing link on missing modules

Created on 6 December 2012, over 11 years ago
Updated 23 January 2023, over 1 year ago

It would be great if the names of missing modules would be clickable and take you directly to the project page.

Putting the following code in module_filter.module (line 104) takes you a long way:

foreach($modules[$module]['#requires'] as $requires_name => $requires_text){
          if(strpos($requires_text, 'admin-missing')){
            $pos = strpos($requires_text, '<');
            $requires_name_human = substr($requires_text, 0, $pos - 2);
            $modules[$module]['#requires'][$requires_name] = l($requires_name_human, 'http://drupal.org/project/' . $requires_name) . substr($requires_text, $pos - 2);
          }
        }

The one problem I couldn't figure out is how to get the project name of a module. In most cases, this isn't a problem, but if a module requires e.g. 'page_manager', it will try to link to http://drupal.org/project/page_manager, while it chould be http://drupal.org/project/ctools.

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium maartendeblock

Live updates comments and jobs are added and updated live.
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.69.0 2024