Version Notes
Download this release
Release Info
Developer | integer_net GmbH |
Extension | IntegerNet_RemoveCustomerAccountLinks |
Version | 2.0.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.0.0 to 2.0.0.0
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/Block/Navigation.php +2 -9
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/Helper/Data.php +8 -2
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/Model/System/Source/{Item.php → Link.php} +1 -2
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/adminhtml.xml +0 -38
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/config.xml +10 -19
- app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/system.xml +11 -17
- app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv +1 -1
- app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv +1 -1
- package.xml +6 -6
app/code/community/IntegerNet/RemoveCustomerAccountLinks/Block/Navigation.php
CHANGED
@@ -20,15 +20,8 @@ class IntegerNet_RemoveCustomerAccountLinks_Block_Navigation extends Mage_Custom
|
|
20 |
*/
|
21 |
public function removeLink()
|
22 |
{
|
23 |
-
|
24 |
-
|
25 |
-
*/
|
26 |
-
|
27 |
-
$pages = Mage::getStoreConfig(IntegerNet_RemoveCustomerAccountLinks_Helper_Data::XML_PATH_REMOVECUSTOMERACCOUNTLINKS_SETTINGS_REMOVE);
|
28 |
-
$pagesArray = explode(',', $pages);
|
29 |
-
|
30 |
-
foreach ($pagesArray as $name) {
|
31 |
-
unset($this->_links[$name]);
|
32 |
}
|
33 |
|
34 |
return $this;
|
20 |
*/
|
21 |
public function removeLink()
|
22 |
{
|
23 |
+
foreach (Mage::helper('integernet_removecustomeraccountlinks')->getNavigationLinksToRemove() as $link) {
|
24 |
+
unset($this->_links[$link]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
return $this;
|
app/code/community/IntegerNet/RemoveCustomerAccountLinks/Helper/Data.php
CHANGED
@@ -15,8 +15,14 @@
|
|
15 |
*/
|
16 |
class IntegerNet_RemoveCustomerAccountLinks_Helper_Data extends Mage_Core_Helper_Abstract
|
17 |
{
|
|
|
18 |
/**
|
19 |
-
*
|
|
|
20 |
*/
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
}
|
15 |
*/
|
16 |
class IntegerNet_RemoveCustomerAccountLinks_Helper_Data extends Mage_Core_Helper_Abstract
|
17 |
{
|
18 |
+
|
19 |
/**
|
20 |
+
* @param mixed $store
|
21 |
+
* @return array
|
22 |
*/
|
23 |
+
public function getNavigationLinksToRemove($store = null)
|
24 |
+
{
|
25 |
+
$items = Mage::getStoreConfig('customer/integernet_removecustomeraccountlinks/items', $store);
|
26 |
+
return explode(',', $items);
|
27 |
+
}
|
28 |
}
|
app/code/community/IntegerNet/RemoveCustomerAccountLinks/Model/System/Source/{Item.php → Link.php}
RENAMED
@@ -13,14 +13,13 @@
|
|
13 |
/**
|
14 |
* Enter description here ...
|
15 |
*/
|
16 |
-
class
|
17 |
{
|
18 |
/**
|
19 |
* @return array
|
20 |
*/
|
21 |
public function toOptionArray()
|
22 |
{
|
23 |
-
|
24 |
$options = array(array(
|
25 |
'value' => '-',
|
26 |
'label' => '',
|
13 |
/**
|
14 |
* Enter description here ...
|
15 |
*/
|
16 |
+
class IntegerNet_RemoveCustomerAccountLinks_Model_System_Source_Link
|
17 |
{
|
18 |
/**
|
19 |
* @return array
|
20 |
*/
|
21 |
public function toOptionArray()
|
22 |
{
|
|
|
23 |
$options = array(array(
|
24 |
'value' => '-',
|
25 |
'label' => '',
|
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>
|
22 |
</IntegerNet_RemoveCustomerAccountLinks>
|
23 |
</modules>
|
24 |
<global>
|
@@ -30,25 +30,16 @@
|
|
30 |
</customer>
|
31 |
</blocks>
|
32 |
<helpers>
|
33 |
-
<
|
34 |
<class>IntegerNet_RemoveCustomerAccountLinks_Helper</class>
|
35 |
-
</
|
36 |
</helpers>
|
37 |
<models>
|
38 |
-
<
|
39 |
<class>IntegerNet_RemoveCustomerAccountLinks_Model</class>
|
40 |
-
</
|
41 |
</models>
|
42 |
</global>
|
43 |
-
<frontend>
|
44 |
-
<layout>
|
45 |
-
<updates>
|
46 |
-
<integernet_navigation>
|
47 |
-
<file>integernet_navigation.xml</file>
|
48 |
-
</integernet_navigation>
|
49 |
-
</updates>
|
50 |
-
</layout>
|
51 |
-
</frontend>
|
52 |
<adminhtml>
|
53 |
<translate>
|
54 |
<modules>
|
@@ -61,10 +52,10 @@
|
|
61 |
</translate>
|
62 |
</adminhtml>
|
63 |
<default>
|
64 |
-
<
|
65 |
-
<
|
66 |
-
<
|
67 |
-
</
|
68 |
-
</
|
69 |
</default>
|
70 |
</config>
|
18 |
<config>
|
19 |
<modules>
|
20 |
<IntegerNet_RemoveCustomerAccountLinks>
|
21 |
+
<version>2.0.0.0</version>
|
22 |
</IntegerNet_RemoveCustomerAccountLinks>
|
23 |
</modules>
|
24 |
<global>
|
30 |
</customer>
|
31 |
</blocks>
|
32 |
<helpers>
|
33 |
+
<integernet_removecustomeraccountlinks>
|
34 |
<class>IntegerNet_RemoveCustomerAccountLinks_Helper</class>
|
35 |
+
</integernet_removecustomeraccountlinks>
|
36 |
</helpers>
|
37 |
<models>
|
38 |
+
<integernet_removecustomeraccountlinks>
|
39 |
<class>IntegerNet_RemoveCustomerAccountLinks_Model</class>
|
40 |
+
</integernet_removecustomeraccountlinks>
|
41 |
</models>
|
42 |
</global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<adminhtml>
|
44 |
<translate>
|
45 |
<modules>
|
52 |
</translate>
|
53 |
</adminhtml>
|
54 |
<default>
|
55 |
+
<customer>
|
56 |
+
<integernet_removecustomeraccountlinks>
|
57 |
+
<items />
|
58 |
+
</integernet_removecustomeraccountlinks>
|
59 |
+
</customer>
|
60 |
</default>
|
61 |
</config>
|
app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/system.xml
CHANGED
@@ -17,33 +17,27 @@
|
|
17 |
-->
|
18 |
<config>
|
19 |
<sections>
|
20 |
-
<
|
21 |
-
<label>Remove Customer Account Links</label>
|
22 |
-
<tab>customer</tab>
|
23 |
-
<sort_order>150</sort_order>
|
24 |
-
<show_in_default>1</show_in_default>
|
25 |
-
<show_in_website>1</show_in_website>
|
26 |
-
<show_in_store>1</show_in_store>
|
27 |
<groups>
|
28 |
-
<
|
29 |
-
<label>
|
30 |
-
<sort_order>
|
31 |
<show_in_default>1</show_in_default>
|
32 |
<show_in_website>1</show_in_website>
|
33 |
<show_in_store>1</show_in_store>
|
34 |
<fields>
|
35 |
-
<
|
36 |
-
<label>Remove
|
37 |
<frontend_type>multiselect</frontend_type>
|
38 |
-
<source_model>
|
39 |
-
<sort_order>
|
40 |
<show_in_default>1</show_in_default>
|
41 |
<show_in_website>1</show_in_website>
|
42 |
<show_in_store>1</show_in_store>
|
43 |
-
</
|
44 |
</fields>
|
45 |
-
</
|
46 |
</groups>
|
47 |
-
</
|
48 |
</sections>
|
49 |
</config>
|
17 |
-->
|
18 |
<config>
|
19 |
<sections>
|
20 |
+
<customer>
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<groups>
|
22 |
+
<integernet_removecustomeraccountlinks translate="label" module="integernet_removecustomeraccountlinks">
|
23 |
+
<label>Remove Customer Account Links</label>
|
24 |
+
<sort_order>120</sort_order>
|
25 |
<show_in_default>1</show_in_default>
|
26 |
<show_in_website>1</show_in_website>
|
27 |
<show_in_store>1</show_in_store>
|
28 |
<fields>
|
29 |
+
<items translate="label">
|
30 |
+
<label>Remove links</label>
|
31 |
<frontend_type>multiselect</frontend_type>
|
32 |
+
<source_model>integernet_removecustomeraccountlinks/system_source_link</source_model>
|
33 |
+
<sort_order>10</sort_order>
|
34 |
<show_in_default>1</show_in_default>
|
35 |
<show_in_website>1</show_in_website>
|
36 |
<show_in_store>1</show_in_store>
|
37 |
+
</items>
|
38 |
</fields>
|
39 |
+
</integernet_removecustomeraccountlinks>
|
40 |
</groups>
|
41 |
+
</customer>
|
42 |
</sections>
|
43 |
</config>
|
app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
"Remove Customer Account Links","Entferne Benutzerkonto Links"
|
2 |
-
"Remove
|
1 |
"Remove Customer Account Links","Entferne Benutzerkonto Links"
|
2 |
+
"Remove links","Entferne Menüpunkte"
|
app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
"Remove Customer Account Links","Remove Customer Account Links"
|
2 |
-
"Remove
|
1 |
"Remove Customer Account Links","Remove Customer Account Links"
|
2 |
+
"Remove links","Remove links"
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>IntegerNet_RemoveCustomerAccountLinks</name>
|
4 |
-
<version>
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Removes customer account links in Magento.</summary>
|
10 |
<description>Removes customer account links in Magento.</description>
|
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>2013-12-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="IntegerNet"><dir name="RemoveCustomerAccountLinks"><dir name="Block"><file name="Navigation.php" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.2.0</min><max>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>IntegerNet_RemoveCustomerAccountLinks</name>
|
4 |
+
<version>2.0.0.0</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Removes customer account links in Magento.</summary>
|
10 |
<description>Removes customer account links in Magento.</description>
|
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>2013-12-15</date>
|
14 |
+
<time>14:07:11</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="390c70a9aee76cb8a5b0ab5668f54669"/><file name="system.xml" hash="fdcd317d86d1cd4367e5f82374a9cef2"/></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>
|