You are here

function profile2_page_get_base_path in Profile 2 7.2

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

Returns the base path to use as profile page.

5 calls to profile2_page_get_base_path()
profile2_diff_menu in contrib/profile2_diff.module
Implements hook_menu().
profile2_page_goto in contrib/profile2_page.inc
Re-direct a menu item to path based on the profile base-path.
profile2_page_menu in contrib/profile2_page.module
Implements hook_menu().
profile2_page_uri_callback in contrib/profile2_page.module
URI callback pointing to the profile page.
profile2_page_user_view in contrib/profile2_page.module
Implements hook_user_view().

File

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

Code

function profile2_page_get_base_path($profile_type) {

  // Allow for an easy customization of the page's base path.
  if (!empty($profile_type->data['page_path'])) {
    return $profile_type->data['page_path'];
  }
  return 'profile-' . $profile_type->type;
}