function twitter_mock_enable in Twitter 7.4
Same name and namespace in other branches
- 6.5 tests/twitter_mock.module \twitter_mock_enable()
- 6.4 tests/twitter_mock.module \twitter_mock_enable()
- 7.6 tests/twitter_mock.module \twitter_mock_enable()
- 7.3 tests/twitter_mock.module \twitter_mock_enable()
- 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);
}