Module_List - Version 0.2.1

Version Notes

Checks for disabled local module configuration node

Download this release

Release Info

Developer Alan Storm
Extension Module_List
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.1

app/code/community/Pulsestorm/Modulelist/Block/Top.php CHANGED
@@ -18,4 +18,19 @@ class Pulsestorm_Modulelist_Block_Top extends Pulsestorm_Modulelist_Block_Templa
18
return $this->getLayout()->createBlock('pulsestorm_modulelist/moduletable')
19
->setList($list);
20
}
21
}
18
return $this->getLayout()->createBlock('pulsestorm_modulelist/moduletable')
19
->setList($list);
20
}
21
+
22
+ public function getLocalWarnings()
23
+ {
24
+ $config = Mage::getConfig();
25
+ $messages = array();
26
+
27
+ $global = $config->getNode('global');
28
+
29
+ if($global->is('disable_local_modules',true))
30
+ {
31
+ $message = $this->__('An unknown module has set the <code>global/disable_local_modules</code> node to true. This will disable all local modules.');
32
+ $messages[] = $message;
33
+ }
34
+ return $messages;
35
+ }
36
}
app/code/community/Pulsestorm/Modulelist/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
<config>
3
<modules>
4
<Pulsestorm_Modulelist>
5
- <version>0.1.0</version>
6
</Pulsestorm_Modulelist>
7
</modules>
8
<admin>
2
<config>
3
<modules>
4
<Pulsestorm_Modulelist>
5
+ <version>0.2.1</version>
6
</Pulsestorm_Modulelist>
7
</modules>
8
<admin>
app/code/community/Pulsestorm/Modulelist/templates/table.phtml CHANGED
@@ -8,6 +8,16 @@
8
<th>Path Exists</th>
9
<th>Found <code>confix.xml</code>?</th>
10
</tr>
11
<?php foreach($this->getList() as $item): ?>
12
<tr>
13
<th class="pulsestorm_modulelist_name"><?php echo $item->getName(); ?></th>
8
<th>Path Exists</th>
9
<th>Found <code>confix.xml</code>?</th>
10
</tr>
11
+ <?php if($this->getExtraWarnings()): ?>
12
+ <tr>
13
+ <td colspan="6" class="pulsestorm_modulelist_no">
14
+ <?php foreach($this->getExtraWarnings() as $string): ?>
15
+ <p><?php echo $string ?></p>
16
+ <?php endforeach;?>
17
+ </td>
18
+ </tr>
19
+ <?php endif; ?>
20
+
21
<?php foreach($this->getList() as $item): ?>
22
<tr>
23
<th class="pulsestorm_modulelist_name"><?php echo $item->getName(); ?></th>
app/code/community/Pulsestorm/Modulelist/templates/top.phtml CHANGED
@@ -13,7 +13,11 @@
13
14
15
<h2>local</h2>
16
- <?php echo $this->createTableBlock($report->getLocalList())->_toHtml(); ?>
17
18
<h2>Warnings</h2>
19
13
14
15
<h2>local</h2>
16
+ <?php
17
+ $local = $this->createTableBlock($report->getLocalList());
18
+ $local->setExtraWarnings($this->getLocalWarnings());
19
+ echo $local->_toHtml();
20
+ ?>
21
22
<h2>Warnings</h2>
23
package.xml CHANGED
@@ -1,2 +1,2 @@
1
<?xml version="1.0"?>
2
- <package><name>Module_List</name><version>0.2.0</version><stability>stable</stability><license>MIT</license><channel>community</channel><extends></extends><summary>Reports on installed Magento code modules</summary><description>This extension adds a section to the Magento Admin console which lists all install code modules. Modules are distinct from Magento Connect packages. A Connect package may contain a module, but it not limited to a module.</description><notes>Checks for disabled local module configuration node</notes><authors><author><name>Alan Storm</name><user>alanstorm</user><email>astorm@alanstorm.com</email></author></authors><date>2012-10-01</date><time>13:09:55</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Pulsestorm"><dir name="Modulelist"><dir name="Block"><file name="Moduletable.php" hash="ad8a121eea4b95f42f765a26a28d9388"/><file name="Template.php" hash="c9389432d70d40b91b085fb7b4035b23"/><file name="Top.php" hash="dcc405189d3e1f66b481226d7ad933d5"/></dir><dir name="controllers"><dir name="Pulsestorm"><file name="CssController.php" hash="9ce43a730635f24b9c69ed25af250686"/><file name="ModulelistController.php" hash="e09c06ab0ccde213831c83c8c0418c0e"/></dir></dir><dir name="css"><file name="main.css" hash="8e6fe6c29be2e136aff27df825f61f01"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e3d62e186468e9d2028f0d858d7c0e97"/><file name="config.xml" hash="5f9e8d830c1b03228b54922b4efa36f7"/></dir><dir name="Helper"><file name="Data.php" hash="05f7f53c12ec6b9298cb0190b3670ac5"/></dir><dir name="Model"><file name="Configuredmodule.php" hash="78a035893291b1238fe7955468ecabd3"/><file name="Inferedmodule.php" hash="7df8deb39c20cd422081728b6c98dc20"/><file name="Inferredconflict.php" hash="fb513e10f839ef4eb55bbafd457931c1"/><file name="Report.php" hash="1dc790bf94c75da9f67d1cbaced6d7d8"/><dir name="Report"><file name="Infered.php" hash="a6f8dab5369256512ae7386a9ed85541"/></dir></dir><dir name="templates"><file name="table.phtml" hash="c7f8af6f654d9369f14ceb166effb2cb"/><file name="top.phtml" hash="f311cec25700dd50298a26e843fb3636"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Pulsestorm_Modulelist.xml" hash="6892542d56fb8f5159d279f36b059f16"/></dir></dir></dir></target></contents></package>
1
<?xml version="1.0"?>
2
+ <package><name>Module_List</name><version>0.2.1</version><stability>stable</stability><license>MIT</license><channel>community</channel><extends></extends><summary>Reports on installed Magento code modules</summary><description>This extension adds a section to the Magento Admin console which lists all install code modules. Modules are distinct from Magento Connect packages. A Connect package may contain a module, but it not limited to a module.</description><notes>Checks for disabled local module configuration node</notes><authors><author><name>Alan Storm</name><user>alanstorm</user><email>astorm@alanstorm.com</email></author></authors><date>2012-10-01</date><time>13:28:58</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Pulsestorm"><dir name="Modulelist"><dir name="Block"><file name="Moduletable.php" hash="ad8a121eea4b95f42f765a26a28d9388"/><file name="Template.php" hash="c9389432d70d40b91b085fb7b4035b23"/><file name="Top.php" hash="2cc12b5d2855892c7cbba856e3d12b5f"/></dir><dir name="controllers"><dir name="Pulsestorm"><file name="CssController.php" hash="9ce43a730635f24b9c69ed25af250686"/><file name="ModulelistController.php" hash="e09c06ab0ccde213831c83c8c0418c0e"/></dir></dir><dir name="css"><file name="main.css" hash="8e6fe6c29be2e136aff27df825f61f01"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e3d62e186468e9d2028f0d858d7c0e97"/><file name="config.xml" hash="a63929cd82de5af54ccf3afbcba479b5"/></dir><dir name="Helper"><file name="Data.php" hash="05f7f53c12ec6b9298cb0190b3670ac5"/></dir><dir name="Model"><file name="Configuredmodule.php" hash="78a035893291b1238fe7955468ecabd3"/><file name="Inferedmodule.php" hash="7df8deb39c20cd422081728b6c98dc20"/><file name="Inferredconflict.php" hash="fb513e10f839ef4eb55bbafd457931c1"/><file name="Report.php" hash="1dc790bf94c75da9f67d1cbaced6d7d8"/><dir name="Report"><file name="Infered.php" hash="a6f8dab5369256512ae7386a9ed85541"/></dir></dir><dir name="templates"><file name="table.phtml" hash="2b552e0eb46c6d701538b1491486b1fb"/><file name="top.phtml" hash="cc6cda6fcc17504eb508adf8aa326095"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Pulsestorm_Modulelist.xml" hash="6892542d56fb8f5159d279f36b059f16"/></dir></dir></dir></target></contents></package>