You are here

class MessageViewsController in Message 7

"Message" entity Views definition.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
EntityDefaultViewsController::$type protected property
EntityDefaultViewsController::getRelationshipHandlerClass public function Determines the handler to use for a relationship to an entity type.
EntityDefaultViewsController::map_from_schema_info protected function Comes up with views information based on the given schema and property info.
EntityDefaultViewsController::optionsListCallback public static function A callback returning property options, suitable to be used as views options callback.
EntityDefaultViewsController::schema_fields protected function Try to come up with some views fields with the help of the schema and the entity property information.
EntityDefaultViewsController::schema_revision_fields protected function Try to come up with some views fields with the help of the revision schema and the entity property information.
EntityDefaultViewsController::__construct public function
MessageViewsController::views_data public function Override views_data(). Overrides EntityDefaultViewsController::views_data