Update your site slogan with Twitter

Last updated on
4 June 2020

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Themers/Designer - A simple example of the module put to use would be using the twitter_fetch_timeline call to retrieve a users timeline and insert the resulting text into the site_slogan variable.

<?php
$twarray = twitter_fetch_timeline('username');
$site_slogan = $twarray[0][text];
?>

Placing this text nearest the top of a theme page such as page.tpl.php. Will subscribe the site slogan to the 'username's latest tweet posting.

Please note this can/does affect performance. Improvements to the documentation are welcome.

Help improve this page

Page status: No known problems

You can: