[*] Classes: Add all fields in Hook class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11782 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -813,7 +813,6 @@ CREATE TABLE `PREFIX_hook` (
|
||||
`description` text,
|
||||
`position` tinyint(1) NOT NULL default '1',
|
||||
`live_edit` tinyint(1) NOT NULL default '0',
|
||||
`is_native` tinyint(1) NOT NULL default '0',
|
||||
PRIMARY KEY (`id_hook`),
|
||||
UNIQUE KEY `hook_name` (`name`)
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<entity_hook>
|
||||
<fields id="name" class="Hook">
|
||||
<field name="name"/>
|
||||
<field name="title"/>
|
||||
<field name="description"/>
|
||||
<field name="live_edit"/>
|
||||
</fields>
|
||||
<entities>
|
||||
<hook id="displayPayment" live_edit="1" is_native="0">
|
||||
<name>displayPayment</name>
|
||||
@@ -432,11 +438,4 @@
|
||||
<description>Display extra informations inside the "my account" block</description>
|
||||
</hook>
|
||||
</entities>
|
||||
<fields id="name" class="Hook">
|
||||
<field name="name"/>
|
||||
<field name="title"/>
|
||||
<field name="description"/>
|
||||
<field name="live_edit"/>
|
||||
<field name="is_native"/>
|
||||
</fields>
|
||||
</entity_hook>
|
||||
|
||||
@@ -493,6 +493,4 @@ ALTER TABLE `PREFIX_specific_price` ADD `id_product_attribute` INT UNSIGNED NOT
|
||||
ALTER TABLE `PREFIX_specific_price` DROP INDEX `id_product`;
|
||||
ALTER TABLE `PREFIX_specific_price` ADD INDEX `id_product` (`id_product`, `id_product_attribute`, `id_shop`, `id_currency`, `id_country`, `id_group`, `from_quantity`, `from`, `to`);
|
||||
|
||||
ALTER TABLE `PREFIX_hook` ADD `is_native` TINYINT( 1 ) NOT NULL DEFAULT '0';
|
||||
|
||||
/* PHP:add_new_tab(AdminAttributeGenerator, fr:Générateur de combinaisons|es:Combinations generator|en:Combinations generator|de:Combinations generator|it:Combinations generator, 1); */;
|
||||
|
||||
Reference in New Issue
Block a user