Skip to content

Commit 4908e80

Browse files
committed
Code refactoring
1 parent 2db2dac commit 4908e80

File tree

7 files changed

+18
-239
lines changed

7 files changed

+18
-239
lines changed

Block/Adminhtml/System/Config/Form/Composer/Version.php

-136
This file was deleted.

Block/Adminhtml/System/Config/Form/Module/Version.php

-86
This file was deleted.

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<a href="http://www.magepal.com" ><img src="https://image.ibb.co/dHBkYH/Magepal_logo.png" width="100" align="right" /></a>
22

33
# Customer and Address Form Fields Manager for Magento2
4+
5+
[![Total Downloads](https://poser.pugx.org/magepal/magento2-form-field-manager/downloads)](https://www.magepal.com/magento2/extensions/admin-form-fields-manager-for-magento-2.html)
6+
[![Latest Stable Version](https://poser.pugx.org/magepal/magento2-form-field-manager/v/stable)](https://www.magepal.com/magento2/extensions/admin-form-fields-manager-for-magento-2.html)
7+
8+
9+
<a href="https://www.magepal.com/magento2/extensions/admin-form-fields-manager-for-magento-2.html" ><img alt="Magento Extensions" src="https://user-images.githubusercontent.com/1415141/109392207-dcf93f00-78e8-11eb-875d-d23be0c9b29b.png" /></a>
10+
411
Quickly and easily remove unwanted form fields from admin order creation and customer account, added by default magento or other third party extensions
512

613

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"php": "~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0|~7.1.3|~7.2.0|~7.3.0|~7.4.0",
2929
"magento/module-backend": "100.0.*|100.1.*|100.2.*|101.0.*|102.0.*",
3030
"magento/framework": "100.0.*|100.1.*|101.0.*|102.0.*|103.0.*",
31-
"magepal/magento2-core":">1.1.0"
31+
"magepal/magento2-core": ">=1.1.10"
3232
},
3333
"type": "magento2-module",
34-
"version": "1.0.7",
34+
"version": "1.1.0",
3535
"autoload": {
3636
"files": [
3737
"registration.php"

etc/adminhtml/di.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@
77
*/
88
-->
99
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
10-
1110
<type name="Magento\Customer\Model\Customer\DataProvider">
1211
<plugin sortOrder="1" name="magePalFormFieldManagerDataProvider"
1312
type="MagePal\FormFieldManager\Plugin\Model\Customer\DataProviderPlugin"/>
1413
</type>
15-
<type name="Magento\Ui\Component\AbstractComponent">
14+
<type name="Magento\Ui\Component\Form\Fieldset">
1615
<plugin sortOrder="1" name="magePalFormFieldManagerAbstractComponent"
1716
type="MagePal\FormFieldManager\Plugin\Component\AbstractComponentPlugin"/>
1817
</type>
1918
<type name="Magento\Customer\Model\Metadata\Form">
2019
<plugin sortOrder="1" name="magePalFormFieldManagerForm"
2120
type="MagePal\FormFieldManager\Plugin\Model\Metadata\FormPlugin"/>
2221
</type>
23-
</config>
22+
</config>

etc/adminhtml/system.xml

+5-10
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,18 @@
1515
<label>Form Field Manager</label>
1616
<tab>magepal</tab>
1717
<resource>MagePal_FormFieldManager::magepal_formfieldmanager</resource>
18-
<group id="about" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="0" translate="label">
18+
<group id="about_magepal" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="0" translate="label">
1919
<label>About Form Field Manager</label>
20-
<attribute type="expanded">1</attribute>
2120
<comment>
2221
<![CDATA[
23-
<strong>Copyright © 2020 <a href="http://www.magepal.com" target="_blank">www.magepal.com</a> / <a href="mailto:[email protected]">[email protected]</a></strong><br />
22+
<strong>Copyright © 2021 <a href="http://www.magepal.com" target="_blank">www.magepal.com</a> / <a href="mailto:[email protected]">[email protected]</a></strong><br />
2423
Discover other must have extensions at <a href="http://www.magepal.com" target="_blank">www.magepal.com</a>. Thanks for choosing MagePal Extensions.<br/><br/>
25-
<hr style="border-top: 1px solid #e3e3e3" />
24+
<hr class="magepal-hr" />
2625
]]>
2726
</comment>
28-
<field id="module_version" translate="label" type="label" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0">
29-
<label>Module Version</label>
30-
<frontend_model>MagePal\FormFieldManager\Block\Adminhtml\System\Config\Form\Module\Version</frontend_model>
31-
</field>
32-
<field id="composer_version" translate="label" type="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
27+
<field id="MagePal_FormFieldManager" translate="label" type="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
3328
<label>Composer Version</label>
34-
<frontend_model>MagePal\FormFieldManager\Block\Adminhtml\System\Config\Form\Composer\Version</frontend_model>
29+
<frontend_model>MagePal\Core\Block\Adminhtml\System\Config\Composer\Version</frontend_model>
3530
</field>
3631
</group>
3732
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">

etc/module.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<module name="MagePal_FormFieldManager" setup_version="1.0.0">
55
<sequence>
66
<module name="Magento_Customer"/>
7-
7+
<module name="MagePal_Core"/>
88
</sequence>
99
</module>
10-
</config>
10+
</config>

0 commit comments

Comments
 (0)