You are here

function twitter_mock_enable in Twitter 6.5

Same name and namespace in other branches
  1. 6.4 tests/twitter_mock.module \twitter_mock_enable()
  2. 7.6 tests/twitter_mock.module \twitter_mock_enable()
  3. 7.3 tests/twitter_mock.module \twitter_mock_enable()
  4. 7.4 tests/twitter_mock.module \twitter_mock_enable()
  5. 7.5 tests/twitter_mock.module \twitter_mock_enable()

Implements hook_enable().

Sets the Twitter API host to be the local site.

File

tests/twitter_mock.module, line 15
Module for Mock Twitter API requests

Code

function twitter_mock_enable() {
  global $base_root;
  variable_set('twitter_api', $base_root);
}