function announcements_install
Search API
7.x announcements.install | announcements_install() |
6.x announcements.install | announcements_install() |
4.x announcements.install | announcements_install() |
5.x announcements.install | announcements_install() |
Hook install. Called when the module is installed on the admin modules page.
File
- modules/
announcements/ announcements.install, line 13
Code
function announcements_install() {
// Install our table
$q = "
CREATE TABLE `content__announcement` (
`cid` int unsigned NOT NULL,
`vid` int NOT NULL,
`field__activity_datetime` datetime DEFAULT NULL,
`field__msg` longtext,
`field__visibility` varchar(255) DEFAULT NULL,
PRIMARY KEY (`vid`),
KEY `cid` (`cid`),
KEY `visibility` (`field__visibility`),
KEY `field__activity_datetime` (`field__activity_datetime`)
);
";
db_query($q);
}