Changeset 15767 for trunk/modules
- Timestamp:
- 12/15/11 02:10:04 (5 months ago)
- Location:
- trunk/modules/boonex/groups/install
- Files:
-
- 5 edited
-
config.php (modified) (4 diffs)
-
sql/disable.sql (modified) (1 diff)
-
sql/enable.sql (modified) (2 diffs)
-
sql/install.sql (modified) (1 diff)
-
sql/uninstall.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/groups/install/config.php
r15731 r15767 25 25 */ 26 26 'type' => BX_DOL_MODULE_TYPE_MODULE, 27 'name' => 'bx_groups', 27 28 'title' => 'Groups', 28 29 'note' => 'Socializing by common interests in groups.', … … 68 69 'recompile_alerts' => 0, 69 70 'clear_db_cache' => 1, 70 'show_conclusion' => 1,71 'show_conclusion' => 0, 71 72 ), 72 73 'uninstall' => array ( … … 91 92 'recompile_alerts' => 0, 92 93 'clear_db_cache' => 1, 93 'show_conclusion' => 1,94 'show_conclusion' => 0, 94 95 ), 95 96 'enable' => array( … … 160 161 'install_info' => array( 161 162 'introduction' => '', 162 'conclusion' => ' inst_concl.html'163 'conclusion' => '' 163 164 ), 164 165 'uninstall_info' => array( 165 166 'introduction' => '', 166 'conclusion' => ' uninst_concl.html'167 'conclusion' => '' 167 168 ) 168 169 ); -
trunk/modules/boonex/groups/install/sql/disable.sql
r15731 r15767 1 2 -- studio page and widget 3 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='bx_groups' LIMIT 1); 4 UPDATE `sys_std_widgets` SET `status`='2' WHERE `page_id`=@iPageId LIMIT 1; 5 1 6 2 7 -- compose pages -
trunk/modules/boonex/groups/install/sql/enable.sql
r15733 r15767 1 2 -- studio page and widget 3 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='bx_groups' LIMIT 1); 4 UPDATE `sys_std_widgets` SET `status`='1' WHERE `page_id`=@iPageId LIMIT 1; 1 5 2 6 -- page compose pages … … 30 34 SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group`='modules'); 31 35 INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES 32 ('modules', 'bx_groups', '_bx_groups _adm_stg_cpt_type', 'modules/boonex/groups/|mi-std.png', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1));36 ('modules', 'bx_groups', '_bx_groups', 'modules/boonex/groups/|mi-std.png', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1)); 33 37 SET @iTypeId = LAST_INSERT_ID(); 34 38 35 39 INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` ) 36 VALUES (@iTypeId, 'bx_groups', '_bx_groups _adm_stg_cpt_category', 1);40 VALUES (@iTypeId, 'bx_groups', '_bx_groups', 1); 37 41 SET @iCategId = LAST_INSERT_ID(); 38 42 -
trunk/modules/boonex/groups/install/sql/install.sql
r15731 r15767 1 2 -- Studio page and widget. 3 INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 4 (3, 'bx_groups', '_bx_groups', '_bx_groups', 'modules/boonex/groups/|std-pi.png'); 5 SET @iPageId = LAST_INSERT_ID(); 6 7 SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='modules'); 8 SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 9 INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 10 (@iPageId, CONCAT('{url_studio}module.php?name=', 'bx_groups'), '', 'modules/modules/boonex/groups/|std-wi.png', '_bx_groups', '', '', 2); 11 INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES 12 (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1)); 13 14 15 1 16 -- create tables 2 17 CREATE TABLE IF NOT EXISTS `[db_prefix]main` ( -
trunk/modules/boonex/groups/install/sql/uninstall.sql
r15731 r15767 1 2 -- studio page and widget 3 DELETE FROM `tp`, `tw`, `tpw` 4 USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw` 5 WHERE `tp`.`id`=`tw`.`page_id` AND `tw`.`id`=`tpw`.`widget_id` AND `tp`.`name`='bx_groups'; 1 6 2 7 -- tables … … 24 29 DELETE FROM `sys_sbs_types` WHERE `unit`='bx_groups'; 25 30 26
Note: See TracChangeset
for help on using the changeset viewer.