function privatemsg_entity_info

7-1 privatemsg.module privatemsg_entity_info()
7-2 privatemsg.module privatemsg_entity_info()

Implements hook_entity_info().

File

./privatemsg.module, line 2361
Allows users to send private messages to other users.

Code

function privatemsg_entity_info() {
  return array('privatemsg_message' => array(
      'label' => t('Privatemsg'),
      'base table' => 'pm_message',
      'fieldable' => TRUE,
      'controller class' => 'PrivatemsgMessageController',
      'uri callback' => 'privatemsg_message_uri_callback',
      'entity keys' => array('id' => 'mid'),
      'bundles' => array('privatemsg_message' => array(
          'label' => t('Private message'),
          'admin' => array(
            'path' => 'admin/config/messaging/privatemsg',
            'access arguments' => array('administer privatemsg settings'),
          ),
        )),
    ));
}