You are here

function context_prefix_install in Context 5

File

context_prefix/context_prefix.install, line 3

Code

function context_prefix_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      db_query("CREATE TABLE {context_prefix} (\n                provider VARCHAR(255) NOT NULL,\n                prefix VARCHAR(255) NOT NULL,\n                id INT(10) NOT NULL,\n                PRIMARY KEY (prefix)\n                ) /*!40100 DEFAULT CHARACTER SET UTF8 */");
      db_query("UPDATE {system} SET weight = -20 WHERE name = 'context_prefix'");
      break;
  }
}