Version Notes
Download this release
Release Info
| Developer | integer_net GmbH |
| Extension | IntegerNet_RemoveCustomerAccountLinks |
| Version | 2.0.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.0.1 to 2.0.0.2
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/Model/System/Source/Item.php +0 -86
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/adminhtml.xml +0 -38
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/config.xml +1 -1
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/sql/integernet_removecustomeraccountlinks_setup/{mysql4-upgrade-2.0.0.0-2.0.0.1.php → mysql4-install-2.0.0.2.php} +1 -1
- package.xml +3 -3
app/code/community/IntegerNet/RemoveCustomerAccountLinks/Model/System/Source/Item.php
DELETED
|
@@ -1,86 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* integer_net Magento Module
|
| 4 |
-
*
|
| 5 |
-
* @category IntegerNet
|
| 6 |
-
* @package IntegerNet_RemoveCustomerAccountLinks
|
| 7 |
-
* @copyright Copyright (c) 2013 integer_net GmbH (http://www.integer-net.de/)
|
| 8 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software Licence 3.0 (OSL-3.0)
|
| 9 |
-
* @author Christian Philipp <cp@integer-net.de>
|
| 10 |
-
* @author Viktor Franz <vf@integer-net.de>
|
| 11 |
-
*/
|
| 12 |
-
|
| 13 |
-
/**
|
| 14 |
-
* Enter description here ...
|
| 15 |
-
*/
|
| 16 |
-
class IntegerNet_RemoveCustomerAccountLinks_Model_System_Source_Item
|
| 17 |
-
{
|
| 18 |
-
/**
|
| 19 |
-
* @return array
|
| 20 |
-
*/
|
| 21 |
-
public function toOptionArray()
|
| 22 |
-
{
|
| 23 |
-
|
| 24 |
-
$options = array(array(
|
| 25 |
-
'value' => '-',
|
| 26 |
-
'label' => '',
|
| 27 |
-
));
|
| 28 |
-
|
| 29 |
-
foreach($this->getLinks() as $link) {
|
| 30 |
-
$options[] = array(
|
| 31 |
-
'value' => $link->getName(),
|
| 32 |
-
'label' => Mage::helper('customer')->__($link->getLabel()),
|
| 33 |
-
);
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
return $options;
|
| 37 |
-
}
|
| 38 |
-
|
| 39 |
-
/**
|
| 40 |
-
* Fetch all customer account navigation links from layout-block
|
| 41 |
-
*
|
| 42 |
-
* @return array of Varien_Object(s)
|
| 43 |
-
*/
|
| 44 |
-
public function getLinks()
|
| 45 |
-
{
|
| 46 |
-
$links = array();
|
| 47 |
-
|
| 48 |
-
/**
|
| 49 |
-
* Save current store and design package
|
| 50 |
-
*/
|
| 51 |
-
$currentStoreId = Mage::app()->getStore()->getId();
|
| 52 |
-
$currentDesign = Mage::registry('_singleton/core/design_package');
|
| 53 |
-
|
| 54 |
-
/**
|
| 55 |
-
* Fetch all links from customer account navigation block
|
| 56 |
-
*/
|
| 57 |
-
foreach (Mage::app()->getStores() as $store) {
|
| 58 |
-
|
| 59 |
-
Mage::app()->setCurrentStore($store->getId());
|
| 60 |
-
Mage::unregister('_singleton/core/design_package');
|
| 61 |
-
|
| 62 |
-
/** @var $layout Mage_Core_Model_Layout */
|
| 63 |
-
$layout = Mage::getModel('core/layout');
|
| 64 |
-
$layout->getUpdate()->load('customer_account');
|
| 65 |
-
$layout->generateXml();
|
| 66 |
-
$layout->generateBlocks();
|
| 67 |
-
|
| 68 |
-
/** @var $navigation Mage_Customer_Block_Account_Navigation */
|
| 69 |
-
$navigation = $layout->getBlock('customer_account_navigation');
|
| 70 |
-
|
| 71 |
-
if($navigation instanceof Mage_Customer_Block_Account_Navigation) {
|
| 72 |
-
$storeNavigationLinks = $navigation->getLinks();
|
| 73 |
-
$links = array_merge($links, $storeNavigationLinks);
|
| 74 |
-
}
|
| 75 |
-
}
|
| 76 |
-
|
| 77 |
-
/**
|
| 78 |
-
* Restore store and design package
|
| 79 |
-
*/
|
| 80 |
-
Mage::app()->setCurrentStore($currentStoreId);
|
| 81 |
-
Mage::unregister('_singleton/core/design_package');
|
| 82 |
-
Mage::register('_singleton/core/design_package', $currentDesign);
|
| 83 |
-
|
| 84 |
-
return $links;
|
| 85 |
-
}
|
| 86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/adminhtml.xml
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* integer_net Magento Module
|
| 5 |
-
*
|
| 6 |
-
* @category IntegerNet
|
| 7 |
-
* @package IntegerNet_RemoveCustomerAccountLinks
|
| 8 |
-
* @copyright Copyright (c) 2013 integer_net GmbH (http://www.integer-net.de/)
|
| 9 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software Licence 3.0 (OSL-3.0)
|
| 10 |
-
* @author Christian Philipp <cp@integer-net.de>
|
| 11 |
-
* @author Viktor Franz <vf@integer-net.de>
|
| 12 |
-
*/
|
| 13 |
-
|
| 14 |
-
/**
|
| 15 |
-
* Enter description here ...
|
| 16 |
-
*/
|
| 17 |
-
-->
|
| 18 |
-
<config>
|
| 19 |
-
<acl>
|
| 20 |
-
<resources>
|
| 21 |
-
<admin>
|
| 22 |
-
<children>
|
| 23 |
-
<system>
|
| 24 |
-
<children>
|
| 25 |
-
<config>
|
| 26 |
-
<children>
|
| 27 |
-
<removecustomeraccountlinks translate="title" module="removecustomeraccountlinks">
|
| 28 |
-
<title>Remove Customer Account Links</title>
|
| 29 |
-
</removecustomeraccountlinks>
|
| 30 |
-
</children>
|
| 31 |
-
</config>
|
| 32 |
-
</children>
|
| 33 |
-
</system>
|
| 34 |
-
</children>
|
| 35 |
-
</admin>
|
| 36 |
-
</resources>
|
| 37 |
-
</acl>
|
| 38 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/config.xml
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
<config>
|
| 19 |
<modules>
|
| 20 |
<IntegerNet_RemoveCustomerAccountLinks>
|
| 21 |
-
<version>2.0.0.
|
| 22 |
</IntegerNet_RemoveCustomerAccountLinks>
|
| 23 |
</modules>
|
| 24 |
<global>
|
| 18 |
<config>
|
| 19 |
<modules>
|
| 20 |
<IntegerNet_RemoveCustomerAccountLinks>
|
| 21 |
+
<version>2.0.0.2</version>
|
| 22 |
</IntegerNet_RemoveCustomerAccountLinks>
|
| 23 |
</modules>
|
| 24 |
<global>
|
app/code/community/IntegerNet/RemoveCustomerAccountLinks/sql/integernet_removecustomeraccountlinks_setup/{mysql4-upgrade-2.0.0.0-2.0.0.1.php → mysql4-install-2.0.0.2.php}
RENAMED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
* @package IntegerNet_RemoveCustomerAccountLinks
|
| 7 |
* @copyright Copyright (c) 2013 integer_net GmbH (http://www.integer-net.de/)
|
| 8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software Licence 3.0 (OSL-3.0)
|
| 9 |
-
* @author Viktor Franz <vf@integer-net.de>
|
| 10 |
* @author Sylvain Rayé
|
|
|
|
| 11 |
*/
|
| 12 |
|
| 13 |
/**
|
| 6 |
* @package IntegerNet_RemoveCustomerAccountLinks
|
| 7 |
* @copyright Copyright (c) 2013 integer_net GmbH (http://www.integer-net.de/)
|
| 8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software Licence 3.0 (OSL-3.0)
|
|
|
|
| 9 |
* @author Sylvain Rayé
|
| 10 |
+
* @author Viktor Franz <vf@integer-net.de>
|
| 11 |
*/
|
| 12 |
|
| 13 |
/**
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>IntegerNet_RemoveCustomerAccountLinks</name>
|
| 4 |
-
<version>2.0.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
<notes></notes>
|
| 12 |
<authors><author><name>integer_net GmbH</name><user>info</user><email>info@integer-net.de</email></author><author><name>Christian Philipp</name><user>cp</user><email>cp@integer-net.de</email></author><author><name>Viktor Franz</name><user>vf</user><email>vf@integer-net.de</email></author></authors>
|
| 13 |
<date>2014-01-12</date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="IntegerNet"><dir name="RemoveCustomerAccountLinks"><dir name="Block"><file name="Navigation.php" hash="e1c994104c837ea513ead2606c63c95a"/></dir><dir name="Helper"><file name="Data.php" hash="3cc8d7b9f8ffb63b6a34b9c587112636"/></dir><dir name="Model"><dir name="System"><dir name="Source"><file name="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>7.9.9</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>IntegerNet_RemoveCustomerAccountLinks</name>
|
| 4 |
+
<version>2.0.0.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
| 7 |
<channel>community</channel>
|
| 11 |
<notes></notes>
|
| 12 |
<authors><author><name>integer_net GmbH</name><user>info</user><email>info@integer-net.de</email></author><author><name>Christian Philipp</name><user>cp</user><email>cp@integer-net.de</email></author><author><name>Viktor Franz</name><user>vf</user><email>vf@integer-net.de</email></author></authors>
|
| 13 |
<date>2014-01-12</date>
|
| 14 |
+
<time>13:10:22</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="IntegerNet"><dir name="RemoveCustomerAccountLinks"><dir name="Block"><file name="Navigation.php" hash="e1c994104c837ea513ead2606c63c95a"/></dir><dir name="Helper"><file name="Data.php" hash="3cc8d7b9f8ffb63b6a34b9c587112636"/></dir><dir name="Model"><dir name="System"><dir name="Source"><file name="Link.php" hash="c0c53214a7b99890b6db983fb03edd01"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="725db225599f447c47ca4076b8a023ef"/><file name="system.xml" hash="fdcd317d86d1cd4367e5f82374a9cef2"/></dir><dir name="sql"><dir name="integernet_removecustomeraccountlinks_setup"><file name="mysql4-install-2.0.0.2.php" hash="c0b5150c2467941d0cebbe9440e0a544"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="IntegerNet_RemoveCustomerAccountLinks.xml" hash="497d8b2b62fa8cd2627e247a1fae7d33"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="IntegerNet_RemoveCustomerAccountLinks.csv" hash="8a9f94506891df01291aca03e48a8ca2"/></dir><dir name="en_US"><file name="IntegerNet_RemoveCustomerAccountLinks.csv" hash="82eaf42f71469bfcd4ada4ddc5be9455"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>7.9.9</max></php></required></dependencies>
|
| 18 |
</package>
|
