HomeHelpTrac

Changeset 15767 for trunk/modules


Ignore:
Timestamp:
12/15/11 02:10:04 (5 months ago)
Author:
Alexander Trofimov
Message:

Groups - remake according to new modules widget system

Location:
trunk/modules/boonex/groups/install
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/groups/install/config.php

    r15731 r15767  
    2525     */ 
    2626    'type' => BX_DOL_MODULE_TYPE_MODULE, 
     27    'name' => 'bx_groups', 
    2728    'title' => 'Groups', 
    2829    'note' => 'Socializing by common interests in groups.', 
     
    6869        'recompile_alerts' => 0, 
    6970        'clear_db_cache' => 1, 
    70         'show_conclusion' => 1, 
     71        'show_conclusion' => 0, 
    7172    ), 
    7273    'uninstall' => array ( 
     
    9192        'recompile_alerts' => 0, 
    9293        'clear_db_cache' => 1, 
    93         'show_conclusion' => 1, 
     94        'show_conclusion' => 0, 
    9495    ), 
    9596    'enable' => array( 
     
    160161    'install_info' => array( 
    161162        'introduction' => '', 
    162         'conclusion' => 'inst_concl.html' 
     163        'conclusion' => '' 
    163164    ), 
    164165    'uninstall_info' => array( 
    165166        'introduction' => '', 
    166         'conclusion' => 'uninst_concl.html' 
     167        'conclusion' => '' 
    167168    ) 
    168169); 
  • trunk/modules/boonex/groups/install/sql/disable.sql

    r15731 r15767  
     1 
     2-- studio page and widget 
     3SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='bx_groups' LIMIT 1); 
     4UPDATE `sys_std_widgets` SET `status`='2' WHERE `page_id`=@iPageId LIMIT 1; 
     5 
    16 
    27-- compose pages 
  • trunk/modules/boonex/groups/install/sql/enable.sql

    r15733 r15767  
     1 
     2-- studio page and widget 
     3SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='bx_groups' LIMIT 1); 
     4UPDATE `sys_std_widgets` SET `status`='1' WHERE `page_id`=@iPageId LIMIT 1; 
    15 
    26-- page compose pages 
     
    3034SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group`='modules'); 
    3135INSERT 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)); 
    3337SET @iTypeId = LAST_INSERT_ID(); 
    3438 
    3539INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )   
    36 VALUES (@iTypeId, 'bx_groups', '_bx_groups_adm_stg_cpt_category', 1); 
     40VALUES (@iTypeId, 'bx_groups', '_bx_groups', 1); 
    3741SET @iCategId = LAST_INSERT_ID(); 
    3842 
  • trunk/modules/boonex/groups/install/sql/install.sql

    r15731 r15767  
     1 
     2-- Studio page and widget. 
     3INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 
     4(3, 'bx_groups', '_bx_groups', '_bx_groups', 'modules/boonex/groups/|std-pi.png'); 
     5SET @iPageId = LAST_INSERT_ID(); 
     6 
     7SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='modules'); 
     8SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 
     9INSERT 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); 
     11INSERT 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 
    116-- create tables 
    217CREATE TABLE IF NOT EXISTS `[db_prefix]main` ( 
  • trunk/modules/boonex/groups/install/sql/uninstall.sql

    r15731 r15767  
     1 
     2-- studio page and widget 
     3DELETE FROM `tp`, `tw`, `tpw` 
     4USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw` 
     5WHERE `tp`.`id`=`tw`.`page_id` AND `tw`.`id`=`tpw`.`widget_id` AND `tp`.`name`='bx_groups'; 
    16 
    27-- tables 
     
    2429DELETE FROM `sys_sbs_types` WHERE `unit`='bx_groups'; 
    2530 
    26  
Note: See TracChangeset for help on using the changeset viewer.