You are here

function rh_profile2_profile2_view in Rabbit Hole 7.2

Implements hook_profile2_view().

Parameters

$profile:

$view_mode:

$langcode:

File

modules/rh_profile2/rh_profile2.module, line 146
Main module file for Rabbit Hole Profile2 module.

Code

function rh_profile2_profile2_view($profile, $view_mode, $langcode) {
  if ($view_mode == 'page' && !user_access('bypass rh_profile2')) {
    rabbit_hole_execute('profile2', $profile);
  }
}