You are here

function twitter_install in Twitter 6.5

Same name and namespace in other branches
  1. 6.2 twitter.install \twitter_install()
  2. 6.3 twitter.install \twitter_install()
  3. 6.4 twitter.install \twitter_install()
  4. 7.6 twitter.install \twitter_install()
  5. 7.3 twitter.install \twitter_install()
  6. 7.4 twitter.install \twitter_install()
  7. 7.5 twitter.install \twitter_install()

Implements hook_install().

1 call to twitter_install()
twitter_update_6000 in ./twitter.install
Previous versions of the Twitter module had no database schema. We're safe just running the basic install for update_1.

File

./twitter.install, line 354
Install, update and uninstall functions for the twitter module.

Code

function twitter_install() {
  drupal_install_schema('twitter');

  // Set the weight to 3, making it heavier than Pathauto.
  db_query("UPDATE {system} SET weight = 3 WHERE name = 'twitter'");
}