You are here

function notifications_views_handler_field_body::render in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body::render()
  2. 6 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body::render()
  3. 6.2 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body::render()
  4. 6.3 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

notifications_views/includes/notifications_views_handler_field_body.inc, line 8

Class

notifications_views_handler_field_body
Field handler

Code

function render($values) {
  $method_info = messaging_method_info('simple');
  $value = $values->{$this->field_alias};

  // The filter is applied now only once
  if ($method_info['filter']) {
    return check_markup($value, $filter, FALSE);
  }
  return check_plain($value);
}