function profile2_page_get_base_path in Profile 2 7
Same name and namespace in other branches
- 7.2 contrib/profile2_page.module \profile2_page_get_base_path()
Returns the base path to use as profile page.
2 calls to profile2_page_get_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.
File
- contrib/
profile2_page.module, line 181 - 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;
}