function follow_install in Follow 5
Same name and namespace in other branches
- 6 follow.install \follow_install()
- 7.2 follow.install \follow_install()
- 7 follow.install \follow_install()
Implementation of hook_install().
File
- ./
follow.install, line 11 - Follow module's install and uninstall code.
Code
function follow_install() {
// Create the schema.
db_query("CREATE TABLE {follow_links} (\n lid int(10) unsigned NOT NULL auto_increment,\n name varchar(255) NOT NULL default '',\n uid int(11) NOT NULL default '0',\n path varchar(255) NOT NULL default '',\n options text,\n title varchar(255) NOT NULL default '',\n weight tinyint(4) NOT NULL default '0',\n PRIMARY KEY (lid),\n UNIQUE KEY (uid,name)\n )");
// Add a default link to this site's node RSS feed.
db_query("INSERT INTO {follow_links} (name,path,options,uid,weight,title) VALUES('this-site', 'rss.xml', 'a:0:{}', 0, 0, '')");
}