function opigno_messaging_entity_extra_field_info in Opigno messaging 3.x
Implements hook_entity_extra_field_info().
File
- ./
opigno_messaging.module, line 398 - Contains opigno_messaging.module.
Code
function opigno_messaging_entity_extra_field_info() {
$extra = [];
// Message thread image.
$extra['private_message_thread']['private_message_thread']['display']['thread_picture'] = [
'label' => t('Opigno messages thread picture'),
'description' => t('Provides the PM thread picture.'),
'weight' => 0,
];
// Message thread title.
$extra['private_message_thread']['private_message_thread']['display']['thread_title'] = [
'label' => t('Opigno messages thread title'),
'description' => t('Provides the PM thread title.'),
'weight' => 0,
];
// Message thread formatted date.
$extra['private_message_thread']['private_message_thread']['display']['thread_formatted_date'] = [
'label' => t('Opigno messages thread formatted date'),
'description' => t('Provides the PM thread formatted date.'),
'weight' => 0,
];
// Message thread displayed text.
$extra['private_message_thread']['private_message_thread']['display']['thread_text'] = [
'label' => t('Opigno messages thread text'),
'description' => t('Provides the PM thread text (last message cropped text OR the last message author).'),
'weight' => 0,
];
// Message thread options.
$extra['private_message_thread']['private_message_thread']['display']['thread_actions'] = [
'label' => t('Opigno messages thread actions'),
'description' => t('Provides the PM thread actions dropdown.'),
'weight' => 0,
'visible' => FALSE,
];
// Message thread unread messages count.
$extra['private_message_thread']['private_message_thread']['display']['thread_unread_count'] = [
'label' => t('Opigno unread messages count'),
'description' => t('Provides the amount of unread messages in the PM thread.'),
'weight' => 0,
'visible' => FALSE,
];
// Private message formatted date.
$extra['private_message']['private_message']['display']['opigno_date'] = [
'label' => t('Opigno message formatted date'),
'description' => t('Provides the PM formatted date'),
'weight' => 0,
'visible' => FALSE,
];
return $extra;
}