public function Profile::defaultUri in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \Profile::defaultUri()
Override this in order to implement a custom default URI and specify 'entity_class_uri' as 'uri callback' hook_entity_info().
Overrides Entity::defaultUri
File
- ./profile2.module, line 970 
- Support for configurable user profiles.
Class
- Profile
- The class used for profile entities.
Code
public function defaultUri() {
  return array(
    'path' => 'user/' . $this->uid,
    'options' => array(
      'fragment' => 'profile-' . $this->type,
    ),
  );
}