enable.sql 1.1 KB

12345678910111213141516171819202122
  1. -- Settings
  2. SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
  3. INSERT INTO `sys_options_types` (`group`, `name`, `caption`, `icon`, `order`) VALUES
  4. ('modules', 'bx_plyr', '_bx_plyr_adm_stg_cpt_type', 'bx_plyr@modules/boonex/plyr/|std-icon.svg', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1));
  5. SET @iTypeId = LAST_INSERT_ID();
  6. INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )
  7. VALUES (@iTypeId, 'bx_plyr_general', '_bx_plyr_adm_stg_cpt_category_general', 1);
  8. SET @iCategId = LAST_INSERT_ID();
  9. INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  10. ('bx_plyr_option_todo', '123', @iCategId, '_bx_plyr_option_todo', 'digit', '', '', '', 10);
  11. -- Editor
  12. INSERT INTO `sys_objects_player` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  13. ('bx_plyr', 'Plyr', '', 'BxPlyrPlayer', 'modules/boonex/plyr/classes/BxPlyrPlayer.php');
  14. UPDATE `sys_options` SET `value` = 'bx_plyr' WHERE `name` = 'sys_player_default';