#module
INSERT INTO module VALUES ({SGL_NEXT_ID}, 1, 'block', 'Blocks', 'Use the ''Blocks'' module to configure the contents of the blocks in the left and right hand columns, or anywhere in a page.', 'block/block', '48/module_block.png', 'Andrey Podshivalov', NULL, 'BSD', 'stable');
SELECT @moduleId := MAX(module_id) FROM module;
#perms
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr', 'Permission to use block manager', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_add', 'Permission to add new block', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_edit', 'Permission to edit existing block', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_delete', 'Permission to remove block', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_reorder', 'Permission to reorder blocks', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_list', 'Permission to view block listing', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_insert', 'Permission to view block listing', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'blockmgr_cmd_update', 'Permission to view block listing', @moduleId);
--
-- Dumping data for table `block`
--
INSERT INTO `block` VALUES ({SGL_NEXT_ID}, 'Navigation_Block_Navigation', 'Admin menu', '', '', 1, 'AdminNav', 1, 0, 'a:9:{s:15:"startParentNode";s:1:"4";s:10:"startLevel";s:1:"0";s:14:"levelsToRender";s:1:"0";s:9:"collapsed";s:1:"1";s:10:"showAlways";s:1:"1";s:12:"cacheEnabled";s:1:"1";s:11:"breadcrumbs";s:1:"0";s:8:"renderer";s:14:"SimpleRenderer";s:8:"template";s:0:"";}');
INSERT INTO `block` VALUES ({SGL_NEXT_ID}, 'Navigation_Block_Navigation', 'User menu', '', '', 1, 'MainNav', 1, 0, 'a:9:{s:15:"startParentNode";s:1:"2";s:10:"startLevel";s:1:"0";s:14:"levelsToRender";s:1:"0";s:9:"collapsed";s:1:"1";s:10:"showAlways";s:1:"1";s:12:"cacheEnabled";s:1:"1";s:11:"breadcrumbs";s:1:"0";s:8:"renderer";s:14:"SimpleRenderer";s:8:"template";s:0:"";}');
--
-- Dumping data for table `block_assignment`
--
SELECT @blockIdAdmin := block_id FROM block WHERE title = 'Admin menu';
SELECT @blockIdUser := block_id FROM block WHERE title = 'User menu';
-- admin menu
INSERT INTO `block_assignment` VALUES (@blockIdAdmin, 0);
-- user menu
INSERT INTO `block_assignment` VALUES (@blockIdUser, 0);
--
-- Dumping data for table `block_role`
--
-- admin menu
INSERT INTO `block_role` VALUES (@blockIdAdmin, 1);
-- user menu
INSERT INTO `block_role` VALUES (@blockIdUser, -2);
Copyright 2K16 - 2K18 Indonesian Hacker Rulez