You are here

twitter_post.install in Twitter 7.4

Install, update and uninstall functions for the twitter module.

File

twitter_post/twitter_post.install
View 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

Namesort descending Description
twitter_post_update_7300 Don't default to TinyURL any more.
twitter_post_update_7301 Implements hook_update_N().