You are here

protected function Pollim::defaultUri in Poll Improved 7

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

./pollim.module, line 474
Module for the Pollim Entity - a starting point to create your own Entity and associated administration interface

Class

Pollim
The class used for pollim entities

Code

protected function defaultUri() {
  return array(
    'path' => 'pollim/' . $this->pollim_id,
  );
}