From 57cf2fc8ce150bfacdc69fa47ae5462c75a5482b Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Wed, 19 May 2021 16:00:36 +0530 Subject: [PATCH] Removed unused options from images controller --- controllers/admin/AdminImagesController.php | 126 ++++++++++---------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/controllers/admin/AdminImagesController.php b/controllers/admin/AdminImagesController.php index 11bd67be4..11ce68c13 100644 --- a/controllers/admin/AdminImagesController.php +++ b/controllers/admin/AdminImagesController.php @@ -58,9 +58,9 @@ class AdminImagesControllerCore extends AdminController 'height' => array('title' => $this->l('Height'), 'suffix' => ' px'), 'products' => array('title' => $this->l('Products'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false), 'categories' => array('title' => $this->l('Categories'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false), - 'manufacturers' => array('title' => $this->l('Manufacturers'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false), - 'suppliers' => array('title' => $this->l('Suppliers'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false), - 'stores' => array('title' => $this->l('Stores'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false) + // 'manufacturers' => array('title' => $this->l('Manufacturers'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false), + // 'suppliers' => array('title' => $this->l('Suppliers'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false), + // 'stores' => array('title' => $this->l('Stores'), 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => false) ); // Scenes tab has been removed by default from the installation, but may still exists in updates @@ -267,46 +267,46 @@ class AdminImagesControllerCore extends AdminController ), ) ), - array( - 'type' => 'switch', - 'label' => $this->l('Manufacturers'), - 'name' => 'manufacturers', - 'required' => false, - 'is_bool' => true, - 'hint' => $this->l('This type will be used for Manufacturer images.'), - 'values' => array( - array( - 'id' => 'manufacturers_on', - 'value' => 1, - 'label' => $this->l('Enabled') - ), - array( - 'id' => 'manufacturers_off', - 'value' => 0, - 'label' => $this->l('Disabled') - ), - ) - ), - array( - 'type' => 'switch', - 'label' => $this->l('Suppliers'), - 'name' => 'suppliers', - 'required' => false, - 'is_bool' => true, - 'hint' => $this->l('This type will be used for Supplier images.'), - 'values' => array( - array( - 'id' => 'suppliers_on', - 'value' => 1, - 'label' => $this->l('Enabled') - ), - array( - 'id' => 'suppliers_off', - 'value' => 0, - 'label' => $this->l('Disabled') - ), - ) - ), + // array( + // 'type' => 'switch', + // 'label' => $this->l('Manufacturers'), + // 'name' => 'manufacturers', + // 'required' => false, + // 'is_bool' => true, + // 'hint' => $this->l('This type will be used for Manufacturer images.'), + // 'values' => array( + // array( + // 'id' => 'manufacturers_on', + // 'value' => 1, + // 'label' => $this->l('Enabled') + // ), + // array( + // 'id' => 'manufacturers_off', + // 'value' => 0, + // 'label' => $this->l('Disabled') + // ), + // ) + // ), + // array( + // 'type' => 'switch', + // 'label' => $this->l('Suppliers'), + // 'name' => 'suppliers', + // 'required' => false, + // 'is_bool' => true, + // 'hint' => $this->l('This type will be used for Supplier images.'), + // 'values' => array( + // array( + // 'id' => 'suppliers_on', + // 'value' => 1, + // 'label' => $this->l('Enabled') + // ), + // array( + // 'id' => 'suppliers_off', + // 'value' => 0, + // 'label' => $this->l('Disabled') + // ), + // ) + // ), array( 'type' => 'switch', 'label' => $this->l('Scenes'), @@ -328,26 +328,26 @@ class AdminImagesControllerCore extends AdminController ), ) ), - array( - 'type' => 'switch', - 'label' => $this->l('Stores'), - 'name' => 'stores', - 'required' => false, - 'is_bool' => true, - 'hint' => $this->l('This type will be used for Store images.'), - 'values' => array( - array( - 'id' => 'stores_on', - 'value' => 1, - 'label' => $this->l('Enabled') - ), - array( - 'id' => 'stores_off', - 'value' => 0, - 'label' => $this->l('Disabled') - ), - ) - ), + // array( + // 'type' => 'switch', + // 'label' => $this->l('Stores'), + // 'name' => 'stores', + // 'required' => false, + // 'is_bool' => true, + // 'hint' => $this->l('This type will be used for Store images.'), + // 'values' => array( + // array( + // 'id' => 'stores_on', + // 'value' => 1, + // 'label' => $this->l('Enabled') + // ), + // array( + // 'id' => 'stores_off', + // 'value' => 0, + // 'label' => $this->l('Disabled') + // ), + // ) + // ), ), 'submit' => array( 'title' => $this->l('Save')