function twitter_pull_lazy in Twitter Pull 7
Same name and namespace in other branches
- 7.2 twitter_pull.module \twitter_pull_lazy()
Menu callback to provide lazy loading of tweets.
Parameters
$lazy_id: The id containing all information needed to render the tweets with twitter_pull_render().
1 string reference to 'twitter_pull_lazy'
- twitter_pull_menu in ./
twitter_pull.module - Implements hook_menu().
File
- ./
twitter_pull.module, line 282 - Twitter Pull module.
Code
function twitter_pull_lazy($lazy_id) {
// Extract the parameters from the lazy id
$parameters = explode('-', $lazy_id, 4);
$twitkey = base64_decode($parameters[0]);
$title = base64_decode($parameters[1]);
$num_items = isset($parameters[2]) ? (int) $parameters[2] : NULL;
$themekey = isset($parameters[3]) ? check_plain($parameters[3]) : NULL;
// Print the results
print twitter_pull_render($twitkey, $title, $num_items, $themekey, FALSE);
}