You are here

function follow_install in Follow 7

Same name and namespace in other branches
  1. 5 follow.install \follow_install()
  2. 6 follow.install \follow_install()
  3. 7.2 follow.install \follow_install()

Implementation of hook_install().

File

./follow.install, line 11
Follow module's install and uninstall code.

Code

function follow_install() {

  // Add a default link to this site's node RSS feed.
  db_insert('follow_links')
    ->fields(array(
    'name' => 'this-site',
    'path' => 'rss.xml',
    'options' => 'a:0:{}',
    'uid' => 0,
    'weight' => 0,
  ))
    ->execute();
}