function install() { global $Controller, $DB, $CONFIG; $Controller->newObj('PageLayoutEditor')->move('last', 'adminMenu'); $DB->query("CREATE TABLE IF NOT EXISTS `pagelayout` (\n `pid` int(11) NOT NULL,\n `id` int(11) NOT NULL,\n `module` varchar(255) collate utf8_swedish_ci NOT NULL,\n `type` varchar(11) collate utf8_swedish_ci NOT NULL,\n `row` int(11) NOT NULL,\n `place` int(11) NOT NULL,\n `size` int(11) NOT NULL,\n `content` text collate utf8_swedish_ci NOT NULL,\n KEY `row` (`row`),\n KEY `id` (`id`),\n KEY `pid` (`pid`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci;"); Design::registerModule('news', 'News', 'large/agt_announcements-32', array(3, 6, 12), array('autofill', 'id'), array('Page'), false); Design::registerModule('html', 'HTML', 'large/contents-32', array(2, 3, 4, 5, 6, 7, 8, 10, 12), array('text'), array('Page'), false); Design::registerModule('image', 'Image', 'large/thumbnail-32', array(2, 3, 4, 5, 6, 7, 8, 10, 12), array('image'), array('Page'), false); return self::$VERSION; }