05
Jul
How to Display a Twitter tweet in Drupal as a Block
- Category:
- Drupal
Posted On : July 5, 2013
| No Comment
Use twitter_pull_render Functions:-
twitter_pull_render ($twitkey, $title = NULL, $num_items = NULL, $themekey = NULL)
ARGUMENTS:
- I.@param $twitkey
- II.@param $title
- III.@param $num_items
- 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:-
View Code PHP
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: