You are here

function profile2_page_title in Profile 2 7.2

Same name and namespace in other branches
  1. 7 contrib/profile2_page.module \profile2_page_title()

Menu title callbacks.

1 string reference to 'profile2_page_title'
profile2_page_menu in contrib/profile2_page.module
Implements hook_menu().

File

contrib/profile2_page.module, line 413
Adds separate pages for viewing and editing profiles.

Code

function profile2_page_title($type_name, $my = FALSE) {
  $label = profile2_get_types($type_name)
    ->getTranslation('label');
  if ($my) {
    $label = t('My @title', array(
      '@title' => $label,
    ));
  }
  return $label;
}