Plugins list should respect module status

kingandy - February 19, 2008 - 09:53
Project:Link to content
Version:5.x-2.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:stBorchert
Status:closed
Description

When generating the 'Enabled Plugins' and 'Disabled Plugins' list, the core module should only display a plugin module if it passes a module_exists() check:

<?php
if ( module_exists('linktocontent_category') ) {
  ...
}
?>

(This check should probably also run whenever else the plugin modules are used, referenced or processed.)

At present, the plugins list seems to be generated based on some variable or database value that is created/inserted on plugin module installation (via the linktocontent_register function), and does not get cleared until module uninstallation (when it calls linktocontent_unregister()). This is not appropriate, as it causes errors when a plugin module is deactivated but not uninstalled. It should be possible to deactivate a plugin without uninstalling it and thus losing all configuration information.

Cheers

Andy

#1

stBorchert - February 25, 2008 - 15:47
Assigned to:Anonymous» stBorchert
Status:active» postponed

Hi, Andy.
Don't get frightened, I postpone it to be in version 5.2.x (which will hopefully be released within the next weeks).

greetings,

Stefan

#2

stBorchert - February 28, 2008 - 22:42
Version:5.x-1.7» 5.x-2.x-dev
Category:bug report» task

moved task to new development version

#3

stBorchert - February 28, 2008 - 22:47
Status:postponed» active

task is active

#4

stBorchert - March 1, 2008 - 12:50
Status:active» fixed

Fixed in current 5.x.2.x-dev (should be available for download in a few hours).

#5

Anonymous (not verified) - March 15, 2008 - 12:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.