Mobile-Menu iFuturz Infoweb Inc. Contact Portfolio

05

Jul

How to Display a Twitter tweet in Drupal as a Block

How to Display a Twitter tweet in Drupal as a Block

Posted On : July 5, 2013

| No Comment

Use twitter_pull_render Functions:-

twitter_pull_render ($twitkey, $title = NULL, $num_items = NULL, $themekey = NULL)

ARGUMENTS:

  1. I.@param $twitkey
  2. II.@param $title
  3. III.@param $num_items
  4. IV.@param $themekey
    Drupal theme key-name to use for theming the output of the Twitter response.


Create a One Twitter Tweet Block and Put The Below Code

Block Title:-Twitter Tweet

Block body:-

1
2
3
4
5
6
7
<!--?php if (function_exists('twitter_pull_render')) {
 
print twitter_pull_render('@drupal', 'Drupal', 5, NULL);
 
}
 
?-->

Input Format :- PHP code

  • Tags:

Comment