You are here

function facebook_pull_preprocess_facebook_pull_feed in Facebook Pull 7.2

Same name and namespace in other branches
  1. 7.3 facebook_pull.module \facebook_pull_preprocess_facebook_pull_feed()
  2. 7 facebook_pull.module \facebook_pull_preprocess_facebook_pull_feed()

Implements hook_preprocess_HOOK();.

File

./facebook_pull.module, line 334
Default cache time.

Code

function facebook_pull_preprocess_facebook_pull_feed(&$variables) {
  global $is_https;
  foreach ($variables['items'] as &$item) {
    $from =& $item->from;
    $scheme = $is_https ? 'https' : 'http';
    $from->picture = "{$scheme}://graph.facebook.com/{$from->id}/picture";
  }
}