class MessageViewsController in Message 7
"Message" entity Views definition.
Hierarchy
- class \EntityDefaultViewsController
- class \MessageViewsController
Expanded class hierarchy of MessageViewsController
1 string reference to 'MessageViewsController'
- message_entity_info in ./
message.module - Implements hook_entity_info().
File
- includes/
views/ message.views.inc, line 10 - Provides support for the Views module.
View source
class MessageViewsController extends EntityDefaultViewsController {
/**
* Override views_data().
*/
public function views_data() {
$data = parent::views_data();
$data['message']['message_render']['field'] = array(
'title' => 'Render message (Get text)',
'real field' => 'mid',
'help' => t('Show the message by replacing any tokens with their real value.'),
'handler' => 'message_handler_field_message_render',
);
$data['message']['type']['filter']['handler'] = 'message_handler_filter_message_type';
$data['message']['type_category'] = array(
'title' => 'Message category',
'help' => 'Filter messages by message type category.',
'filter' => array(
'handler' => 'message_handler_filter_message_type_category',
'real field' => 'type',
),
);
return $data;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultViewsController:: |
protected | property | ||
EntityDefaultViewsController:: |
public | function | Determines the handler to use for a relationship to an entity type. | |
EntityDefaultViewsController:: |
protected | function | Comes up with views information based on the given schema and property info. | |
EntityDefaultViewsController:: |
public static | function | A callback returning property options, suitable to be used as views options callback. | |
EntityDefaultViewsController:: |
protected | function | Try to come up with some views fields with the help of the schema and the entity property information. | |
EntityDefaultViewsController:: |
protected | function | Try to come up with some views fields with the help of the revision schema and the entity property information. | |
EntityDefaultViewsController:: |
public | function | ||
MessageViewsController:: |
public | function |
Override views_data(). Overrides EntityDefaultViewsController:: |