value_value = t('Is friend of the current user'); } function query() { // We can't learn friends if user is not logged in. $fbu = fb_facebook_user(); if ($fbu) { $friends = fb_get_friends($fbu); } if (!$fbu || !count($friends)) { // Hide all content $friends = array(0); } $this->ensure_my_table(); $this->query->add_where(0, $this->table_alias . '.fbu IN (%s)', implode(',', $friends)); } }