You are here

function twitter_install in Twitter 7.6

Same name and namespace in other branches
  1. 6.5 twitter.install \twitter_install()
  2. 6.2 twitter.install \twitter_install()
  3. 6.3 twitter.install \twitter_install()
  4. 6.4 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().

File

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

Code

function twitter_install() {

  // Set the weight to 3, making it heavier than Pathauto.
  db_update('system')
    ->fields(array(
    'weight' => 3,
  ))
    ->condition('type', 'module')
    ->condition('name', 'twitter')
    ->execute();
}