ColorBox field_view_field

Public

Use of colorbox when rendering an image using field_view_field

Get raw version
php
  1. $build = field_view_field('user', $context['entity'], 'field_picture', array(
  2. 'label' => 'hidden',
  3. 'type' => 'colorbox',
  4. 'settings' => array(
  5. 'colorbox_node_style' => 'user_large',
  6. 'colorbox_image_style' => 'colorbox',
  7. ),
  8. ));