You are here

class notifications_views_handler_field_body in Notifications 6

Same name and namespace in other branches
  1. 6.4 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body
  2. 6.2 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body
  3. 6.3 notifications_views/notifications_views_handler_field_body.inc \notifications_views_handler_field_body
  4. 7 notifications_views/includes/notifications_views_handler_field_body.inc \notifications_views_handler_field_body

Field handler

Hierarchy

Expanded class hierarchy of notifications_views_handler_field_body

1 string reference to 'notifications_views_handler_field_body'
notifications_views_views_data in notifications_views/notifications_views.module
Implementation of hook_views_data().

File

notifications_views/notifications_views_handler_field_body.inc, line 6

View source
class notifications_views_handler_field_body extends views_handler_field {
  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);
  }

}

Members