static function install() { // Create a table to store custom album info in. $db = Database::instance(); $db->query("CREATE TABLE IF NOT EXISTS {custom_albums} (\n `id` int(9) NOT NULL auto_increment,\n `album_id` int(9) NOT NULL,\n `thumb_size` int(9) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `album_id` (`album_id`,`id`)\n ) DEFAULT CHARSET=utf8;"); custom_albums_installer::update_rules(); module::set_version("custom_albums", 1); }
static function theme_edit_form_completed($form) { // Update our resize rules, in case the thumbnail or resize size has changed custom_albums_installer::update_rules(); }