IntegerNet_RemoveCustomerAccountLinks - Version 2.0.0.0

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 CHANGED
@@ -20,15 +20,8 @@ class IntegerNet_RemoveCustomerAccountLinks_Block_Navigation extends Mage_Custom
20
  */
21
  public function removeLink()
22
  {
23
- /*
24
- * hide account links choosen in backend configuration
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
- const XML_PATH_REMOVECUSTOMERACCOUNTLINKS_SETTINGS_REMOVE = 'removecustomeraccountlinks/settings/remove';
 
 
 
 
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 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' => '',
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>1.1.0.0</version>
22
  </IntegerNet_RemoveCustomerAccountLinks>
23
  </modules>
24
  <global>
@@ -30,25 +30,16 @@
30
  </customer>
31
  </blocks>
32
  <helpers>
33
- <removecustomeraccountlinks>
34
  <class>IntegerNet_RemoveCustomerAccountLinks_Helper</class>
35
- </removecustomeraccountlinks>
36
  </helpers>
37
  <models>
38
- <removecustomeraccountlinks>
39
  <class>IntegerNet_RemoveCustomerAccountLinks_Model</class>
40
- </removecustomeraccountlinks>
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
- <removecustomeraccountlinks>
65
- <settings>
66
- <remove><!-- no default page is hidden--></remove>
67
- </settings>
68
- </removecustomeraccountlinks>
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
- <removecustomeraccountlinks translate="label" module="removecustomeraccountlinks">
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
- <settings translate="label">
29
- <label>Settings</label>
30
- <sort_order>1</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
- <remove translate="label">
36
- <label>Remove these links</label>
37
  <frontend_type>multiselect</frontend_type>
38
- <source_model>removecustomeraccountlinks/system_source_item</source_model>
39
- <sort_order>1</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
- </remove>
44
  </fields>
45
- </settings>
46
  </groups>
47
- </removecustomeraccountlinks>
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 these links","Entferne folgende Menüpunkte"
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 these links","Remove these links"
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>1.1.0.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://www.gnu.org/licenses/gpl-3.0.html">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-13</date>
14
- <time>10:22:02</time>
15
- <contents><target name="magecommunity"><dir name="IntegerNet"><dir name="RemoveCustomerAccountLinks"><dir name="Block"><file name="Navigation.php" hash="8ac60c94093910b3dfeaa46c9deef207"/></dir><dir name="Helper"><file name="Data.php" hash="0a020ab3fc08266cbb73b6323775ac0f"/></dir><dir name="Model"><dir name="System"><dir name="Source"><file name="Item.php" hash="2a1ff0d7d3db834818749f289174e94c"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="016f7b5e3e840e1994d168e100f477db"/><file name="config.xml" hash="ee88f048feaff7214da44ffe73fb706e"/><file name="system.xml" hash="a89894574b8f6feb2516f5ebabb91f43"/></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="3d558295282db99992f41f52ab1418e8"/></dir><dir name="en_US"><file name="IntegerNet_RemoveCustomerAccountLinks.csv" hash="83a4d1ab7b66dbaf95556469d5f6a590"/></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
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>