daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $image = field_get_items('user', $user, 'field_image');
  2.     $output = field_view_value('user', $user, 'field_image', $image[0], array(
  3.       'type' => 'image',
  4.       'settings' => array(
  5.         'image_style' => 'header_image_160x160',
  6.       ),
  7.     ));
  8.     print render($output);
  9.    
  10. <img src="https://coinme.io/sites/default/files/styles/header_image_160x160/public?itok=f31sbmSd" width="160" height="160" alt="">
  11.    
  12. $to_render = field_view_field('user', $user, 'field_image', array('settings' => array('image_style' => 'header_image_160x160'))); print render($to_render);
  13.    
  14. <?php $to_render = field_view_field('node', $node, 'field_image', array('settings' => array('image_style' => 'header_image_160x160'))); print render($to_render);?>
  15.    
  16. <?php $account = $elements['#account'];?>
  17.    
  18. <?php $to_render = field_view_field('user', $account, 'field_image', array('settings' => array('image_style' => 'header_image_160x160'))); print render($to_render);?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top