"; } */ function install_post($var) { $sql = e107::getDb(); $mes = e107::getMessage(); $query = " INSERT INTO #featurebox (`fb_id`, `fb_title`, `fb_text`, `fb_mode`, `fb_class`, `fb_rendertype`, `fb_template`, `fb_order`, `fb_image`, `fb_imageurl`, `fb_category`) VALUES (1, 'Default Title', 'Default Message', 0, 0, 0, '0', 0, '', '', 0); "; $query2 = " INSERT INTO #featurebox_category (`fb_category_id`, `fb_category_title`, `fb_category_class`, `fb_category_order`) VALUES (1, 'General', 0, 0); "; //FIXME - I should be able to put both INSERTs into the same $query. MySQL class issue. $status = ($sql->db_Select_gen($query)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; $mes->add("Adding Default table data.",$status); $status = ($sql->db_Select_gen($query2)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; $mes->add("Adding Default table data.",$status); } /* function uninstall_options() { } function uninstall_post($var) { // print_a($var); } function upgrade_post($var) { // $sql = e107::getDb(); } */ } ?>