You are here

public function Profile::defaultUri in Profile 2 7.2

Same name and namespace in other branches
  1. 7 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 1216
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,
    ),
  );
}