function twitter_install in Twitter 7.6
Same name and namespace in other branches
- 6.5 twitter.install \twitter_install()
- 6.2 twitter.install \twitter_install()
- 6.3 twitter.install \twitter_install()
- 6.4 twitter.install \twitter_install()
- 7.3 twitter.install \twitter_install()
- 7.4 twitter.install \twitter_install()
- 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();
}