You are here

function privatemsg_entity_info in Privatemsg 7

Same name and namespace in other branches
  1. 7.2 privatemsg.module \privatemsg_entity_info()

Implements hook_entity_info().

File

./privatemsg.module, line 2328
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',
            ),
          ),
        ),
      ),
    ),
  );
}