You are here

function _profile2_user_revisions in Profile 2 7.2

1 string reference to '_profile2_user_revisions'
profile2_menu_alter in ./profile2.module
Implements hook_menu_alter()

File

./profile2.module, line 244
Support for configurable user profiles.

Code

function _profile2_user_revisions($account = NULL, $overview_function = NULL) {
  if ($account && _user_revision_access($account, array(
    'view user revisions',
    'view own user revisions',
  ))) {
    return $overview_function($account);
  }
  else {
    return array(
      'no_user_revision' => array(
        '#type' => 'markup',
        '#markup' => t('No User Account revisions available'),
        '#prefix' => '<h3>',
        '#suffix' => '</h3>',
      ),
    );
  }
}