You are here

function taxonomy_title_install in Taxonomy Title 5

Same name and namespace in other branches
  1. 6 taxonomy_title.install \taxonomy_title_install()

File

./taxonomy_title.install, line 3

Code

function taxonomy_title_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {taxonomy_title} (\n        tid int(11) NOT NULL default '0',\n        title varchar(255) NOT NULL default '',\n        PRIMARY KEY  (tid)\n        ) /*!40100 DEFAULT CHARSET=utf8 */;");
      drupal_set_message('Taxonomy Title Table created sucessfully');
      break;
  }
}