pierre@1: . pierre@1: */ pierre@1: pierre@1: /** pierre@1: * Installation of the ad_weight_probability schema. pierre@1: */ pierre@1: function ad_weight_probability_install() { pierre@1: switch ($GLOBALS['db_type']) { pierre@1: case 'mysql': pierre@1: case 'mysqli': pierre@1: default: pierre@1: db_query("CREATE TABLE {ad_weight_probability} ( pierre@1: aid INT NOT NULL DEFAULT '0', pierre@1: probability INT(3) NOT NULL DEFAULT '0', pierre@1: pierre@1: PRIMARY KEY (aid))"); pierre@1: } pierre@1: } pierre@1: pierre@1: /** pierre@1: * Complete uninstallation of the ad_weight_probability module. pierre@1: */ pierre@1: function ad_weight_probability_uninstall() { pierre@1: db_query('DROP TABLE IF EXISTS {ad_weight_probability}'); pierre@1: drupal_set_message('The ad_weight_probability module has been completely uninstalled.'); pierre@1: } pierre@1: