You are here

function privatemsg_views_data in Privatemsg 6

Same name and namespace in other branches
  1. 6.2 views/privatemsg.views.inc \privatemsg_views_data()
  2. 7.2 views/privatemsg.views.inc \privatemsg_views_data()
  3. 7 views/privatemsg.views.inc \privatemsg_views_data()

@file Provide views data and handlers for privatemsg.module

File

views/privatemsg.views.inc, line 7
Provide views data and handlers for privatemsg.module

Code

function privatemsg_views_data() {
  $data['users']['privatemsg_link'] = array(
    'group' => t('Privatemsg'),
    'title' => t('Send message'),
    'field' => array(
      'title' => t('Send Privatemsg link'),
      'help' => t('Displays a link to send a private message to a user.'),
      'handler' => 'views_handler_field_privatemsg_link',
    ),
  );
  return $data;
}