twitter_post.install in Twitter 7.3
Same filename and directory in other branches
Install, update and uninstall functions for the twitter module.
File
twitter_post/twitter_post.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the twitter module.
*
*/
/**
* Don't default to TinyURL any more.
*/
function twitter_post_update_7300() {
if (variable_get('twitter_post_default_format', NULL) == 'New post: !title !tinyurl') {
variable_set('twitter_post_default_format', "New post: !title !url-alias");
}
return t('Twitter Post now defaults to using aliases, not TinyURL.');
}
/**
* Implements hook_update_N().
*
* Increase module weight to run after pathauto.
*/
function twitter_post_update_7301() {
db_update('system')
->fields(array(
'weight' => 10,
))
->condition('name', 'twitter_post', '=')
->execute();
return t('Updated system weight to 10 for Twitter Post.');
}
Functions
Name | Description |
---|---|
twitter_post_update_7300 | Don't default to TinyURL any more. |
twitter_post_update_7301 | Implements hook_update_N(). |