function location_fax_install in Location 5
Same name and namespace in other branches
- 5.3 contrib/location_fax/location_fax.install \location_fax_install()
- 6.3 contrib/location_fax/location_fax.install \location_fax_install()
- 7.5 contrib/location_fax/location_fax.install \location_fax_install()
- 7.3 contrib/location_fax/location_fax.install \location_fax_install()
- 7.4 contrib/location_fax/location_fax.install \location_fax_install()
File
- contrib/
location_fax/ location_fax.install, line 3
Code
function location_fax_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("\n CREATE TABLE {location_fax} (\n lid int(10) unsigned NOT NULL default '0',\n fax varchar(31) default NULL,\n PRIMARY KEY (lid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;\n ");
break;
case 'pgsql':
db_query("\n CREATE TABLE {location_fax} (\n lid int NOT NULL default '0' CHECK (eid >= 0),\n fax varchar(31) default NULL,\n PRIMARY KEY (lid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;\n ");
break;
}
drupal_set_message(t('Installed tables for module location_fax'));
}