You are here

function template_preprocess_user_relationships_pending_block in User Relationships 7

Same name and namespace in other branches
  1. 6 user_relationship_blocks/user_relationship_blocks.module \template_preprocess_user_relationships_pending_block()

Template pre processor for the pending relationships block

File

user_relationship_blocks/user_relationship_blocks.module, line 391
User Relationship Blocks implementation @author Jeff Smick (creator) @author Alex Karshakevich (maintainer) http://drupal.org/user/183217

Code

function template_preprocess_user_relationships_pending_block(&$variables) {
  $account =& $variables['account'];
  $variables['relationships'] = user_relationships_load(array(
    'user' => $account->uid,
    'approved' => FALSE,
  ), array(
    'include_user_info' => TRUE,
  ));
}